Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't bind to 'ngModel' since it isn't a known property of 'input' #33

Open
CindySLiu opened this issue Apr 11, 2017 · 0 comments
Open

Comments

@CindySLiu
Copy link

Installed product versions

  • Visual Studio: 2015 Professional
  • Extension: AspNetCoreAngular2

Description

Error: Can't bind to 'ngModel' since it isn't a known property of 'input'.

Steps to recreate

I have the following code in html template:
<input type="text" [(ngModel)] ="data"/>
When rendering the html page, the error was thrown.

Exception: Call to Node module failed with error: Error: Template parse errors:
Can't bind to 'ngModel' since it isn't a known property of 'input'. ("


][(ngModel)] ="data"/>

Current behavior

AspNetCoreAngular2 template doesn't allow to use ngModel directive.

Expected behavior

Using ngModel directive should not throw any error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant