Jump to content
Search Community

Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’

Ankit Dixit test
Moderator Tag

Recommended Posts

Hello All,

 

I’ve got the following error when launching my Angular app, even if the component is not displayed.

I have to comment out the so that my app works.

 

zone.js:461 Unhandled Promise rejection: Template parse errors:
Can't bind to 'ngModel' since it isn't a known property of 'input'. ("
    <div>
        <label>Created:</label>
        <input  type="text" [ERROR ->][(ngModel)]="test" placeholder="foo" />
    </div>
</div>"): InterventionDetails@4:28 ; Zone: <root> ; Task: Promise.then ; Value:

 

I’m looking at the Hero plucker but I don’t see any difference.

 

Can anyone clear above error or suggest me some good tutorials list where I can improve my angular skills more. 

Link to comment
Share on other sites

Hey Ankit,

 

This is a GreenSock forum focused on GreenSock related tools, especially GSAP. We don't have the capacity to help with every programming question that you have. I don't know if we have any regulars here who even use Angular. 

 

It might be better to ask your question on a different forum or chat room that's more focused on Angular. If you have any questions about GreenSock tools we'd be happy to help!

 

Happy tweening.

Link to comment
Share on other sites

 

Here is your answer:

import { FormsModule } from '@angular/forms';

[...]

@NgModule({
  imports: [
    [...]
    FormsModule
  ],
  [...]
})

Through you can resolve your errors, Here I am sharing with you some resource you can follow them:

1. https://stackoverflow.com/questions/38892771/cant-bind-to-ngmodel-since-it-isnt-a-known-property-of-input

2. Learn Angular

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...