Skip to content

Instantly share code, notes, and snippets.

@joeeames
Created August 10, 2015 03:22
Show Gist options
  • Save joeeames/4f414aa82ad1ac9d6021 to your computer and use it in GitHub Desktop.
Save joeeames/4f414aa82ad1ac9d6021 to your computer and use it in GitHub Desktop.
simple service for ng2
var fb = new Firebase('https://ng2-thatconf.firebaseio.com/todoItems/');
var todoItems = [];
fb.on("child_added", function(snapshot) {
todoItems.push(snapshot.val());
})
export {todoItems};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment