What causes the “control.registerOnChange is not a function” error

后端 未结 10 2060
一向
一向 2020-12-01 20:39

I have a form using the reactive form approach. The form is created as follow in my pug:

form([formGroup]=\'form\', novalidate=\'\', (ngSubmit)=\'postSurvey(         


        
10条回答
  •  情深已故
    2020-12-01 21:17

    I have also encountered this error when mixing template driven with reactive driven approaches (by mistake):

    
    

    inputCtrl was properly defined in the component. Of course, #inputCtrl must be scrapped in order to work (it was hard to see when input had about 10 attributes).

提交回复
热议问题