13 lines
404 B
JavaScript
13 lines
404 B
JavaScript
|
/*
|
||
|
* Resources Controller
|
||
|
*
|
||
|
* This controller is responsible for fetching all the data for the resources page,
|
||
|
* from Firebase.
|
||
|
*/
|
||
|
angularIO.controller('ResourcesCtrl', ['$firebaseArray', '$firebaseObject', function ($firebaseArray, $firebaseObject) {
|
||
|
var categoryRef = new Firebase("https://angularresources.firebaseio.com/");
|
||
|
var vm = this;
|
||
|
|
||
|
vm.fbObject = $firebaseObject(categoryRef);
|
||
|
|
||
|
}]);
|