Comment bien compiler avec Angulare ?

Fermé
Sakura.io - 13 janv. 2021 à 10:30
Bonjour,
je suis novice avec Angulare donc je suis un tuto et au moment de compiler j'ai plein d'erreur , alors que dans mon code je ne vois aucun rouge !

voici le type d'erreur que j'ai et du coup je ne sais pas par où aller pour corriger cette erreur !

merci d'avance


                                                                                                                                 
Error: src/app/components/tutorials-list/tutorials-list.component.html:8:22 - error TS2322: Type 'Event' is not assignable to typ
e 'string'.

8 [(ngModel)]="title"
~~~~~~
9 />
~~~~~

src/app/components/tutorials-list/tutorials-list.component.ts:7:16
7 templateUrl: './tutorials-list.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TutorialsListComponent.
src/app/components/tutorials-list/tutorials-list.component.html:8:9 - error NG8002: Can't bind to 'ngModel' since it isn't a know
n property of 'input'.

8 [(ngModel)]="title"
~~~~~~~~~~~~~~~~~~~

src/app/components/tutorials-list/tutorials-list.component.ts:7:16
7 templateUrl: './tutorials-list.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TutorialsListComponent.
src/app/components/tutorial-details/tutorial-details.component.html:11:24 - error TS2322: Type 'Event' is not assignable to type
'string'.

11 [(ngModel)]="currentTutorial.title"
~~~~~~~~~~~~~~~~~~~~~~
12 name="title"
~~~~~

src/app/components/tutorial-details/tutorial-details.component.ts:8:16
8 templateUrl: './tutorial-details.component.html',
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error occurs in the template of component TutorialDetailsComponent.
src/app/components/tutorial-details/tutorial-details.component.html:21:24 - error TS2322: Type 'Event' is not assignable to type
'string'.

21 [(ngModel)]="currentTutorial.description"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
22 name="description"
~~~~~



Configuration: Windows / Chrome 87.0.4280.141