I am using angular firebase and trying to update firebase data. While fetching i am not getting id property in key . Hence updating and deleting is failing
please find the code below
create(product){
return this.db.list('/products').push(product);
}
updateKey(){
}
getAll(){
return this.db.list('/products').valueChanges()
}
getProduct(productId){
return this.db.object('/products/' + productId).valueChanges();
}
update(product,productId){
this.db.object('/products/'+productId).update(product)
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…