i have a model call it "Person" and i have some url Rest for manage the
"Person"
GET /persons---> show all person
GET /person/:id--->show person by id
PUT /person/save --> save person
PUT /person/update --> update person
DELETE /person/delete -> delete person
i know one factory handle multiple request method but with same url..
is my case can be handle with one factory?
appServices.factory('Person', ['$resource',
function($resource){
return $resource('http://localhost:9000/persons', {},{query:
{method:'GET'}, isArray:true}
});
}]);
--
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/groups/opt_out.