Hi,

So I finally got item.name to show but when I change the input field, it 
doesn't update the title, it seems that ngModel is not working


<ion-navbar color="primary">
<ion-title>Edit {{item?.name}}</ion-title>
</ion-navbar>

<ion-item>
<ion-label>Name</ion-label>
<ion-input [ngModel]="item?.name" placeholder="Name"></ion-input>
</ion-item>
When I change the code to the following:
<ion-item>
<ion-label>Name</ion-label>
<ion-input [(ngModel)]="item.name" placeholder="Name"></ion-input>
</ion-item>
I get the error:

TypeError: Cannot read property 'name' of undefined

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to