Can't bind to 'ngModel' since it isn't a known property of 'input'

前端 未结 30 1609
予麋鹿
予麋鹿 2020-11-22 12:44

I\'ve got the following error when launching my Angular app, even if the component is not displayed.

I have to comment out the so that my

30条回答
  •  生来不讨喜
    2020-11-22 13:05

    If someone is still getting errors after applying the accepted solution, it could be possibly because you have a separate module file for the component in which you want to use the ngModel property in input tag. In that case, apply the accepted solution in the component's module.ts file as well.

提交回复
热议问题