Skip to content

Instantly share code, notes, and snippets.

@getflourish
Created January 8, 2014 16:14
Show Gist options
  • Select an option

  • Save getflourish/8319361 to your computer and use it in GitHub Desktop.

Select an option

Save getflourish/8319361 to your computer and use it in GitHub Desktop.
Firebase sync
$scope.setupFirebase = function () {
ref = new Firebase("https://*.firebaseio.com/foo");
$scope.items = $firebase(ref);
}
$scope.addItem = function() {
$scope.items.images.push(Math.random(999));
$scope.items.$save();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment