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

前端 未结 30 1015
予麋鹿
予麋鹿 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:13

    if you are still getting the error after importing FormsModule correctly then check in your terminal or (windows console) because your project is not compiling (because of another error that could be anything) and your solution has not been reflected in your browser!

    In my case, my console had the following unrelated error: Property 'retrieveGithubUser' does not exist on type 'ApiService'.

提交回复
热议问题