angular.js
angular.js copied to clipboard
Action's params should override resource's default params
Let's consider the following service:
angular.service('Bookmarks', function($resource) { return $resource('/api/bookmarks', { limit: 2 }, { get: {method: 'GET', params:{limit:3}} } ); });
The call Bookmarks.get() should be issued with the param 'limit' set to 3, since it has been overridden in the action definition. For now, this param is set to the default value (i.e. 2).
It was fixed in 1.0.3 and works fine now: http://jsfiddle.net/BJGCb/4/ Closing.