Remove Object From Firebase Using Javascript
I am setting some objects on firebase-database, and showing them on a HTML table with 'child_added' and append() to dynamically add them as soon as they are added to the database,
Solution 1:
This line looks wrong to me (trying to get the nonexistent id
property of the top level Assets
node):
var assetKey = rootRef.child("id");
Try this instead:
var rowId = $row.data('id');
rootRef.child(rowId).remove()
...
Post a Comment for "Remove Object From Firebase Using Javascript"