{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/13910","labels_url":"https://api.github.com/repos/angular/angular.js/issues/13910/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/13910/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/13910/events","html_url":"https://github.com/angular/angular.js/issues/13910","id":130129144,"number":13910,"title":"using Non-GET instance method for ngresource (mutilple resource in single factory) ","user":{"login":"1nfinite","id":6030393,"avatar_url":"https://avatars.githubusercontent.com/u/6030393?v=3","gravatar_id":"","url":"https://api.github.com/users/1nfinite","html_url":"https://github.com/1nfinite","followers_url":"https://api.github.com/users/1nfinite/followers","following_url":"https://api.github.com/users/1nfinite/following{/other_user}","gists_url":"https://api.github.com/users/1nfinite/gists{/gist_id}","starred_url":"https://api.github.com/users/1nfinite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1nfinite/subscriptions","organizations_url":"https://api.github.com/users/1nfinite/orgs","repos_url":"https://api.github.com/users/1nfinite/repos","events_url":"https://api.github.com/users/1nfinite/events{/privacy}","received_events_url":"https://api.github.com/users/1nfinite/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-31T13:49:42Z","updated_at":"2016-01-31T13:49:42Z","closed_at":null,"body":"I am returning multiple resource in single factory using ngresource. Strangely, i can't seems to be able to access the non-GET instance method like $update, $remove, and $save. What is the correct way of $update, $remove, $save in this situation?\r\n\r\n```\r\nangular.module('myApp.services').factory('Entry', function($resource) {\r\n  return {\r\n      method1: $resource('/api/entries/:id', { id: '@_id' }, {\r\n        update: {\r\n          method: 'PUT' // this method issues a PUT request\r\n        }\r\n      }),\r\n      method2: $resource('/api/entries2', {}, {\r\n\r\n      })\r\n});\r\n\r\n// not working: Entries is not a function at Scope.$scope.save\r\nvar entry = new Entries({});\r\nentry.method1.$update();\r\nentry.method1.$save();\r\nentry.method1.$delete();\r\n```"}}