import { FormsModule } from '@angular/forms';
@NgModule({
imports: [
BrowserModule,
FormsModule //<----------make sure you have added this.
],
....
})
More Related Contents:
- Can’t bind to ‘formGroup’ since it isn’t a known property of ‘form’
- Property ‘controls’ does not exist on type ‘AbstractControl’ Angular 4 [duplicate]
- Angular 2 Form “Cannot find control with path”
- Generic email validator
- Angular reactive Form error: Must supply a value for form control with name:
- Angular 2 creating reactive forms with nested components
- Angular2 Error: There is no directive with “exportAs” set to “ngForm”
- Error when trying to inject a service into an angular component “EXCEPTION: Can’t resolve all parameters for component”, why?
- Angular how to get the multiple checkbox values?
- Ionic 2 Form goes up when keyboard shows
- two way binding with safe navigation operator
- When to use square brackets [ ] in directives @Inputs and when not?
- Angular 2: Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’
- Angular2 – Interaction between components using a service
- Reactive forms – disabled attribute
- How to implement sleep function in TypeScript?
- Testing error case with observables in services
- Build Angular2 HTML and TypeScript to a single file
- Is it possible to get native element for formControl?
- angular keyvalue pipe sort properties / iterate in order
- Angular subscribe elegant
- How to allow access outside localhost
- Angular – Make multiple HTTP calls sequentially
- @types/googlemaps/index.d.ts’ is not a module
- Angular 4+ using Google Analytics
- How to clear form after submit in Angular 2?
- Property ‘toPromise’ does not exist on type ‘Observable’
- TypeError: Object prototype may only be an Object or null: undefined Angular 8
- Page transition animations with Angular 2.0 router and component interface promises
- Angular load external configuration before AppModule loads