Created
August 10, 2015 03:22
-
-
Save joeeames/4f414aa82ad1ac9d6021 to your computer and use it in GitHub Desktop.
simple service for ng2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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