in projects generated through angular-cli, < input [(ngModel)] = "username" >
ngModel directive reported an error: Can"t bind to "ngModel" since it isn"t a known property of" input". ("
import {FormsModule} from"@ angular/forms";
is introduced in
app.module.ts and added to the imports list of @ NgModule
angular related version 7.0.0
typescript version 3.1.6
which god has encountered this kind of problem, please let me know, thank you!