Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .factory("Products", ["$firebaseObject", "$rootScope",
- function($firebaseObject, $rootScope) {
- return function() {
- // create a reference to the database where our Products is.
- var ref = ($rootScope.ref.child("Products"))
- return $firebaseObject(reg);
- }
- }
- ])
- Products().$bindTo($scope, "products");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement