I tried to fetch data from my firebase account
var myApp = angular.module('myApp',['firebase']);
//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});
myApp.factory("Items", function($firebaseArray) {
var itemsRef = new Firebase("https://tukang-urut-dayang.firebaseio.com/senarai_pelanggan");
return $firebaseArray(itemsRef);
})
function MyCtrl($scope,Items) {
$scope.items = Items;
}
Unfortunately the return of Items does not give any outputs at all. Did I miss something?
I just follow this tutorial
https://www.firebase.com/docs/web/libraries/ionic/guide.html#section-list-view