How to iterate form array(array in array in array) in angular2 reactive forms?

前端 未结 1 1426
一整个雨季
一整个雨季 2021-01-13 13:57

I tried to Iterate formArray several times,

This is plunker link for this case https://plnkr.co/edit/4kiJF7cL5VKwn3KnvjvK?p=preview

i want out put like this

相关标签:
1条回答
  • 2021-01-13 14:29

    I solved my problem

    using <FormArray>this.roleForm.controls['permissionModules']).at(k).get('group') as FormArray

    synatax I am able iterate nested arrays,

    This is plunk link where you can see my approach http://plnkr.co/edit/AVqWKkUCNc1HjosOpUWf?p=preview

    0 讨论(0)
提交回复
热议问题