Topic: Error - Can't bind to 'ngModel'

Dario1318 free asked 4 years ago


Hello,

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 4 years ago


Please make sure you imported FormsModule in your module file.


Dario1318 free commented 4 years ago

Now it's working thanks :)


Swaminathan free commented 4 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 4 years ago

Please make sure that the components in which you use inputs are part of the same module in which you imported FormsModule.

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 a.idzikowski@mdbootstrap.com



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: 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