no directive found with exportas 'ngform' code example
Example: no directive found with exportas 'ngform'
import { FormsModule } from '@angular/forms';
@NgModule({
imports: [
BrowserModule,
FormsModule //<----------make sure you have added this.
],
....
})