Last active
November 27, 2017 13:45
-
-
Save canabady/c0fa98d361fb485874894d3df19c5b25 to your computer and use it in GitHub Desktop.
Angular formControl issue with input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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