zettapi_client
Version:
Admin panel and client-side CRUD operations in angular to use with zettapi_server rest api to get started quickly in any CMS project.
12 lines • 392 B
JavaScript
app.service('$owner', function($http, blockUI) {
this.getOwners = function(callback) {
blockUI.start('A obter dados dos clientes...');
$http.get('/api/user/owners').then(function(response) {
callback(response.data);
}).catch(function(response) {
callback();
}).finally(function() {
blockUI.stop();
});
};
});