Ionic Forms with ngModel

Hi All,

I have a form I want to map to an model object. When I add [[ngModel]] to the ion-input, the page does not load (no errors).


<ion-input type="text" [(ngModel)]="personModel.username" formControlName="username" id="username"></ion-input>


private personModel: PersonModel = null;
this.personModel = this.navParams.get('personModel');

Any ideas why the [[ngModel]] is not working?


It was my fault. I had the element did not match the model (case match):


should be