App.factory("Customer", function ($resource) {
return $resource( '../api/customer/:Id',{ Id: "@Id" } );
});
App.service("customerService", function ($resource, Customer) {
this.getCustomers = function (limits, offset) {
return Customer.query({ limit:limits, offset:offset });
};
How can I call success call back and error call back function here.
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.