Skip to content

Commit d9f7860

Browse files
committed
Update resource.md
Added an additional example to make the 'proxy' behavior of the resource more obvious
1 parent 3fcabd7 commit d9f7860

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

guide/angular-data/resource/resource.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ var User = DS.defineResource('user');
2727
// The following are equivalent
2828
DS.find('user', 5);
2929
User.find(5);
30+
31+
DS.destroy('user', 5);
32+
User.destroy(5);
3033
```
3134

3235
See [defineResource(definition)](/documentation/api/api/DS.sync_methods:defineResource) for detailed API information.

0 commit comments

Comments
 (0)