A resource "class" object with methods for the default set of resource 
actions optionally extended with custom actions. The default set contains 
these actions:

{ 'get':    {method:'GET'},
  'save':   {method:'POST'},
  'query':  {method:'GET', isArray:true},
  'remove': {method:'DELETE'},
  'delete': {method:'DELETE'} };

Calling these methods invoke an $http 
<https://docs.angularjs.org/api/ng/service/$http> with the specified http 
method, destination and parameters. When the data is returned from the 
server then the object is an instance of the resource class. The actions 
save, remove and deleteare available on it as methods with the $ prefix. 
This allows you to easily perform CRUD operations (create, read, update, 
delete) on server-side data like this:

var User = $resource('/user/:userId', {userId:'@id'});var user = 
User.get({userId:123}, function() {
  user.abc = true;

Please help me 

I don't understand.

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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to