Have below piece of code:
getRegistrations(){
this.registrationList = this.firebase.list('registrations');
return this.registrationList.snapshotChanges();
}
insertRegistration(registration){
this.registrationList.push({
firstname: registration.firstname,
lastname: registration.lastname,
phone: registration.phone,
email: registration.email,
password: registration.password
});
}
Getting below error:
ERROR TypeError: Cannot read property 'push' of undefined
typeof(this.registrationList)
insideinsertRegistration
method: – Prashant Pimpale