Answer the question
In order to leave comments, you need to log in
How to delete nodes in firebase NOT via web interface?
Has anyone worked closely with firebase? I don’t understand how to delete nodes NOT through the web interface, but with the help of client js. Here is an example of how I create a node:
var messagesRef = new Firebase('http://__________.firebaseio.com/');
var item__name = $('#item__name').val();
messagesRef.push({
item__name: item__name,
})
messagesRef.limit(10).on('child_added', function(snapshot) {
var message = snapshot.val();
messagesRef.limit(10).on('child_added', function(snapshot) {
var message = snapshot.val();
$('<div class="item"' + message.item__name + '').appendTo($('#items__wrapper'));
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question