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

preview_player
Показать описание
Have you ever tried to bind a property or a directive to one of your components and get this error? Or any of its variations?

It can be that your directive isn’t a “known property” of the component you’re using, or maybe it’s that the component itself says it’s not “a known element”.

This is usually caused because Angular is not able to find the component or the property you’re trying to use, meaning that, it might be there somewhere, but it’s not available to the module you’re working on.

To solve this, we must go into the module we’re working on, and add that property or the module responsible for that property to our module’s imports.
Рекомендации по теме