-2

Here I still have this error, I did what I found on the doc and on the forums but I have to miss something. Can someone help me

Erreur:
https://i.stack.imgur.com/3Cct2.png
App.module.ts:
https://i.stack.imgur.com/YRMvX.png
LoginComponent:
https://i.stack.imgur.com/K22xF.png

EDIT: I forget to import my loginComponent ‍♂️

joss
  • 9
  • 2
  • Does this answer your question? [Can't bind to 'ngModel' since it isn't a known property of 'input'](https://stackoverflow.com/questions/38892771/cant-bind-to-ngmodel-since-it-isnt-a-known-property-of-input) – Amer Sep 13 '21 at 11:47
  • `loginComponent` is not listed in the declaration of `app.module`. thats why you are getting this error – Edison Augusthy Sep 13 '21 at 11:52
  • 1
    yesss thanks a lot @Edison, I just saw that, I was focus on the FormsModule than I missed to include my loginComponent ‍♂️. I feel stupid. Thanks for helping me ! – joss Sep 13 '21 at 11:57

1 Answers1

0

Please import your LoginComponent into app.module.ts and update declarations array

declarations: [
     AppComponent, 
     HomeComponent,
     WelcomeComponent,
     LoginComponent //added
  ],
Edison Augusthy
  • 1,535
  • 17
  • 32