Reputation: 807
I am using ionic 2.
I need update data into firebase using Firebase 3
Here is my code.
import firebase from 'firebase';
up()
{
var v=this.Editflat.value;
firebase.database().ref('/flats').update(this.key,v).then(res=>
{console.log("UPDATED",res)});
}
I am getting this error
Error: Firebase.update failed: First argument must be an object containing the children to replace.
How can I fix this issue?
Kindly advice me,
Thanks.
Upvotes: 2
Views: 444