私はAngular2でアプリケーションを構築しており、次の入力値を取得するのに苦労しています。フォーム入力のGat配列Angular2
HTMLフォーム
<form (ngSubmit)="createPage(f)" #f="ngForm">
<textarea name="meta[keywords]" id="keywords" class="form-control"></textarea>
<textarea name="meta[description]" id="description" class="form-control"></textarea>
</form>
app.component.ts
...
export class AppComponent {
createPage(form: NgForm) {
console.log(form.value.meta);
}
}
それはnullを返し続けて立っています。どんな助けでも大歓迎です。