Skip to content

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

Open
@CindySLiu

Description

@CindySLiu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions