[Ionic 4] Can't bind to 'formControl' since it isn't a known property of 'input'

Trying to use the Angular 7 MD mat-autocomplete but getting this error: Can't bind to 'formControl' since it isn't a known property of 'input'. and then If 'mat-option' is an Angular component, then verify that it is part of this module.

I have imported the relevant modules into my app.module.ts and my home.page.ts.

What am I missing?

please Add this in home.module.ts
import { FormsModule, ReactiveFormsModule} from ‘@angular/forms’;
@NgModule({
imports: [
ReactiveFormsModule,
FormsModule,
]
})

add in home.page.ts
import { FormBuilder, FormGroup , Validators , FormControl } from ‘@angular/forms’;

I will when I’m back at work tomorrow. Thank you!

Now I’m getting Can't bind to 'matAutocomplete' since it isn't a known property of 'input'

1 Like

Being an idiot, had to import the MatAutoComplete module into the home.module.ts

1 Like