# Ionic Forms with ngModel

**URL:** <https://forum.ionicframework.com/t/ionic-forms-with-ngmodel/64780>\
**Category:** ionic-v3\
**Created:** [September 28, 2016, 9:07am UTC](https://forum.ionicframework.com/t/ionic-forms-with-ngmodel/64780 "2016-09-28T09:07:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![richardmarais](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/richardmarais/32/101456_2.png) [@richardmarais](https://forum.ionicframework.com/u/richardmarais)\
**Post date:** [September 28, 2016, 9:07am UTC](https://forum.ionicframework.com/t/ionic-forms-with-ngmodel/64780/1 "2016-09-28T09:07:01Z")

</div>

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).

**html**

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

**ts**

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

```

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

Thanks

---

<div class="post-metadata">

**Author:** ![richardmarais](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/richardmarais/32/101456_2.png) [@richardmarais](https://forum.ionicframework.com/u/richardmarais)\
**Post date:** [September 28, 2016, 9:16am UTC](https://forum.ionicframework.com/t/ionic-forms-with-ngmodel/64780/2 "2016-09-28T09:16:23Z")

</div>

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

```
[(ngModel)]="personModel.username"

```

should be

```
[(ngModel)]="personModel.userName"
```
