Get All You Need out of $resource!
How do you use $resource_? Well, you can use it exactly the same as plain $resource.
However the resource extension (
$resource_) service wraps angular's
$resource service to provide the following utilities:
- Relationships: resources always have relationships, $resource should be aware of them!
- Methods: No more creating a separate service to manage your $resource's business logic and validation!
- One Call, Get All: Don't pollute your ui-router resolve with 4 different calls to build one object, get all the relationships at once!