Skip to content

Instantly share code, notes, and snippets.

@canabady
Last active November 27, 2017 13:45
Show Gist options
  • Save canabady/c0fa98d361fb485874894d3df19c5b25 to your computer and use it in GitHub Desktop.
Save canabady/c0fa98d361fb485874894d3df19c5b25 to your computer and use it in GitHub Desktop.
Angular formControl issue with input
Can't bind to 'formControl' since it isn't a known property of 'input' - angular[2-5] material Autocomplete issue
-----------------------------------------------------------------------------------------------------------------
While using formControl, you have to import ReactiveFormsModule to your imports array.
example:
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
@NgModule({
imports: [
BrowserModule,
FormsModule,
ReactiveFormsModule,
MaterialModule,
],
...
})
export class AppModule {}
URL: https://stackoverflow.com/questions/43220348/cant-bind-to-formcontrol-since-it-isnt-a-known-property-of-input-angular
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment