jcassee / angular-hypermedia

Hypermedia REST API client for AngularJS applications
MIT License
38 stars 5 forks source link

Use resource constructor when creating linked/embedded resource #2

Closed mvcatsifma closed 9 years ago

mvcatsifma commented 9 years ago

This guarantees that linked/embedded resources have the same prototype constructor as the enclosing resource, also when this is a custom subtype of the HalResource constructor.