You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
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!?
The text was updated successfully, but these errors were encountered:
It's not enough to add them to app.module.client.ts, because that's only for client-side execution. You need them to be enabled for server-side execution too. Try adding them to app.module.ts, which is shared by both.
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!?
The text was updated successfully, but these errors were encountered: