Please help, I am getting the error: Can’t bind to ‘ngmodel’ since it isn’t a known property of ‘ion-input’
I added FormsModule and ReactiveFormsModule to app.module.ts and to the actual module file… I am still getting the error?!
<ion-item>
<ion-label>Name</ion-label>
<ion-input [(ngmodel)]="item.name" name="name" placeholder="Name"></ion-input>
</ion-item>
jjdev
December 30, 2018, 4:11pm
2
Try using a capital ‘M’ for ngModel
I now get: TypeError: Cannot read property ‘name’ of undefined
jjdev
December 30, 2018, 4:37pm
4
Is item.name
initialized or have a value?
title works when I try and get it like this {{item?.name}} in edit-item.html and I can get the values if I use (ngmodel)=“item.name” but then this isn’t binded and won’t save in my firebase database
I am learning from here: https://www.udemy.com/learn-ionic-3-from-scratch/learn/v4/t/lecture/8333734?start=225 I have also requested help from the instructor, I believe teh problem may be because I am using a latter version of Angular and or ionic?!
here is my repo
https://github.com/jbiddulph/pubs