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

后端 未结 10 1910
一向
一向 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 20:56

    to me it happened when I used same [formControl]="carBrand" and [matAutocomplete]="carBrandAuto" from my autocomplete input

    I changed this

    FROM:

    ...
    
    
    ...
    

    TO

    ...
    
    
    ...
    

提交回复
热议问题