Angular 2 Accessing Nested FormArrays using FormBuilder

后端 未结 3 2143
执笔经年
执笔经年 2020-12-29 12:56

First of all I just begin with Angular 2 and I\'m trying to build a nested form and validate it.

Here\'s part of my ts file:

ngOnInit() {
  this.myFo         


        
3条回答
  •  执笔经年
    2020-12-29 13:40

    Try the following HTML:

    Nome é requerido
    form value: 
    {{myForm.value | json}}

提交回复
热议问题