Cannot find control with name: formControlName in angular reactive form

前端 未结 6 1028
無奈伤痛
無奈伤痛 2020-12-25 11:47

I found this problem in many questions in stackoverflow but no luck. Please help me for figuring out what I am doing wrong.

In component :

6条回答
  •  暖寄归人
    2020-12-25 12:27

    You should specify formGroupName for nested controls

    <== add this
    Contact Info

    Plunker Example

提交回复
热议问题