Skip to content

Instantly share code, notes, and snippets.

@dustinmyers
Created August 11, 2015 16:26
Show Gist options
  • Save dustinmyers/629374ade2d618fa8842 to your computer and use it in GitHub Desktop.
Save dustinmyers/629374ade2d618fa8842 to your computer and use it in GitHub Desktop.
/////// FIREBASE OBJECTS ///////////
var ref = new Firebase(URL);
var obj = $firebaseObj(ref);
console.log("obj: ", obj);
console.log("obj.numbers before $loaded: ", obj.numbers);
obj.$loaded().then(function() {
console.log("obj.numbers after $loaded: ", object.numbers);
$scope.numbers = obj.numbers;
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment