Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Tutorial App part 4 - CategoriesCtrl
.controller('CategoriesCtrl', ['$scope', '$ionicLoading', 'Categories', function($scope, $ionicLoading, Categories) {
$ionicLoading.show();
Categories.all().then(function(data) {
$ionicLoading.hide();
$scope.categories = data;
}, function(error) {
console.log(error);
});
}])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.