UNPKG

zettapi_client

Version:

Client side CRUD operations in angular to use with zettapi_server rest api to get started quickly in any CMS project

16 lines (15 loc) 385 B
app.service('$reporting', function($http, blockUI) { this.getMetadata = function(callback) { blockUI.start('A obter meta dados...'); $http.get('/api/reporting/metadata') .then(function(response) { callback(null, response.data); }) .catch(function(response) { callback(response); }) .finally(function() { blockUI.stop(); }); }; });