Skip to content

Instantly share code, notes, and snippets.

@joeeames
Created August 10, 2015 03:28
Show Gist options
  • Save joeeames/a1bcaf01970006f1c0a8 to your computer and use it in GitHub Desktop.
Save joeeames/a1bcaf01970006f1c0a8 to your computer and use it in GitHub Desktop.
<!doctype html>
<html>
<head>
<title>Angular 2 Demo</title>
<script src="https://cdn.firebase.com/js/client/2.2.9/firebase.js"></script>
<script src="libs/system.js"></script>
<script src="config.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<body class="container">
<todo-app></todo-app>
</body>
</html>
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