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

  1. angular.module('app.categories', ['pascalprecht.translate'])
  2. .controller('CategoriesCtrl', function($scope, $http, $ionicModal, $timeout, $ionicLoading, $filter) {
  3. $scope.categories;
  4. $http.get(urlapi + 'categoriesList')
  5. .then(function(data){
  6. $scope.categories=data.data;
  7. console.log($scope.categories);
  8. }, function(data){
  9. console.log('data error');
  10. console.log(data);
  11. $ionicLoading.show({ template: 'Error connecting server', noBackdrop: true, duration: 2000 });
  12. });
  13. });