Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't bind to 'formControl' since it isn't a known property of 'select'

I'm attempting to create a very simple select with values from an enum. This is the Stackblitz demo.

I've taken the code directly from another working stackblitz implementation so I'm not sure why the error:

Template parse errors: Can't bind to 'formControl' since it isn't a known property of 'select'. ("][formControl]="control"> {{filter}"):

like image 408
Ole Avatar asked Nov 04 '25 02:11

Ole


1 Answers

You need to import ReactiveFormsModule to your imports. Your app.module.ts doesn't contain all the correct imports: imports: [ BrowserModule, FormsModule ]

like image 74
Peter Kim Avatar answered Nov 07 '25 11:11

Peter Kim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!