How to listen only when child added !! not read all data

408
November 25, 2016, at 10:11 PM

I have this code

var dataRef = firebase.database().ref('offers/');
dataRef.once('value').then(function (snapShoot) {
snapShoot.forEach(function (datum) {
    keys = datum.key;
    var newdataRef = firebase.database().ref('offers/' + keys + '/users');
    newdataRef.on('child_added', function (dataSnap) {
        Notify("SOME TEXT");
    })
   })
})`

and I used on('child_added') to add a listener at user's point at this data object here and unfortently this on('child_added') is working for the first execution with the entire data and act like it's on('value')

how could i make it truly listen only for child addition to this node

Rent Charter Buses Company
READ ALSO
Check if days in month are weekends

Check if days in month are weekends

In this function I'm trying to check if days of a month are weekends or notFirst I push all days in an array, then I push in another array every item =! 0 or 6, that are weekend days number

388
Node.js error creating a simple function [on hold]

Node.js error creating a simple function [on hold]

This gives me the unexpected identifier error? I have no clue what I am doing wrong here?

407
Chrome extension show input box from background.js

Chrome extension show input box from background.js

I'm looking to show an automated input box from a chrome extension triggered from backgroundjs but not sure how?

430
How to fire a Facebook Pixel using an FB_ID

How to fire a Facebook Pixel using an FB_ID

We have a user's Facebook id (FB_ID)We want to user that to fire a facebook pixel (given it's AD_ID)

431