Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

FormsModule Error - Can't bind to 'ngModel' since it isn't a known property of 'input'.  #933

@neil-gilbert

Description

@neil-gilbert

Using the latest template from Steve (Angular 4.0), #930

I've added the following lines to app.module.client.ts file :
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
and added them both to the Imports[]

I then ran the following command : webpack --config webpack.config.vendor.js

I've added a form into my app and keep getting the following error : Can't bind to 'ngModel' since it isn't a known property of 'input'.

If i comment out the form from the HTML it works ok...... but if i then un-comment the form it then works ok (i.e. the form works and no errors are displayed)
It seems that something is happening in the HMR to make this work but I'm not sure what!?

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