2016-08-08 6 views

答えて

0

をリセットします。

<table> 
    <tr *ngFor="let x of names"> 
      <td>{{ x.Name }}</td> 
      <td>{{ x.Country }}</td> 
    </tr> 
</table> 
+0

テーブル作成を追加する場所 –

+0

それぞれの@Component()に「template:」セクションを追加する必要があります –

+0

1.作成したmain.ts - > AppComponent 2. AppComponent - > aravind-form 3. aravind- form-component - >宣言された変数とused templateURL 4. aravind.form.component.html - >作成された行のテキストボックスと列のテキストと送信ボタン。 私の質問:ユーザーは、行と列をキー入力しません。 をクリックすると、ユーザーが入力した行数、列数に基づいて表が表示されますか? –

関連する問題