You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
feat($resource): deep-merge custom actions with default actions.
Previously, if you wanted to specify a timeout, transform, interceptor, or any
other property for an action, you also had to include the other properties of
the default action (method, isArray):
```
var Resource = $resource('/foo', {}, { save: { method: 'POST', timeout: 10000 }});
```
Now, a deep-merge between the provided custom actions and the default actions
will be performed, so you can specify just the properties you want to add or
override:
```
var Resource = $resource('/foo', {}, { save: { timeout: 10000 }});
```
Closes#14821
0 commit comments