Ionic 2, beta 11, ngModel for 2 way data binding syntax


I’ve been using code like this all over my app:

<ion-input [(ngModel)]="home_URL" id="homeURL" type="text"></ion-input>

Yet after updating to beta11, all of the pages using ngModel are now causing errors.

I have narrowed it down to ngModel but cannot work out why it has suddenly stopped working and how to fix it.

I noticed that beta 11 updated to Angular rc4 and spun out the angular forms. Is there something simple I’m missing?

Any help would be most welcome.


r u getting solution?

No. The Ionic Team know about the problem. Are you experiencing the same thing?

If you are, please +1 on this issue

I have followed the GitHub issue, but even with the suggested packages etc I am still experiencing the issue.

Ubuntu 64bit
"@angular/core": “2.0.0-rc.4"
@angular/forms": "0.2.0"
“ionic-angular”: “2.0.0-beta.11”