Skip to content

Instantly share code, notes, and snippets.

@UlisesGascon
Created June 13, 2015 09:30
Show Gist options
  • Save UlisesGascon/ba41b22b81dc8d0df310 to your computer and use it in GitHub Desktop.
Save UlisesGascon/ba41b22b81dc8d0df310 to your computer and use it in GitHub Desktop.
.factory with Firebase in Angular
.factory( 'DBService', [ '$FirebaseArray', function ($FirebaseArray) {
var oFB_DB = new Firebase('https://<<FIREBASE-URL>>.firebaseio.com');
return {
getAlumnos: { function (){}
return $firebaseArray(oFB_DB);
}
};
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment