You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
535 B

angular.module('app.categories', ['pascalprecht.translate'])
.controller('CategoriesCtrl', function($scope, $http, $ionicModal, $timeout, $ionicLoading, $filter) {
$scope.categories;
$http.get(urlapi + 'categoriesList')
.then(function(data){
$scope.categories=data.data;
console.log($scope.categories);
}, function(data){
console.log('data error');
console.log(data);
$ionicLoading.show({ template: 'Error connecting server', noBackdrop: true, duration: 2000 });
});
});