Can't bind to 'ngModel' since it isn't a known property of 'input'.' code example
Example 1: Can't bind to 'ngModel' since it isn't a known property of 'input'.
import { FormsModule } from '@angular/forms';
[...]
@NgModule({
imports: [
[...]
FormsModule
],
[...]
})
Example 2: can't bind to 'ngmodeloptions' since it isn't a known property of 'input'
import { FormsModule } from '@angular/forms';
@NgModule({ imports: [ FormsModule ], })