Topic: Error - Can't bind to 'ngModel'
Dario1318 free asked 3 years ago
I try to implement basic autocompleter code from template but I get this error: Can't bind to 'ngModel' since it isn't a known property of 'input'
Can you help me ?
Arkadiusz Idzikowski staff answered 3 years ago
Please make sure you imported FormsModule in your module file.
Dario1318 free commented 3 years ago
Now it's working thanks :)
Swaminathan free commented 3 years ago
I have the same issues with most of the input types. I have imported formMoudles in my modules.ts. still unable to resolve the issue.
Arkadiusz Idzikowski staff commented 3 years ago
Please make sure that the components in which you use inputs are part of the same module in which you imported
In case of any further problems we would need some example demo app on which we will be able to reproduce this problem and check app configuration. You can send it to firstname.lastname@example.org
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.5.4
- Device: pc
- Browser: chrome
- OS: win10
- Provided sample code: No
- Provided link: No