Created
June 13, 2015 09:30
-
-
Save UlisesGascon/ba41b22b81dc8d0df310 to your computer and use it in GitHub Desktop.
.factory with Firebase in Angular
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
.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