Hi there,

I wanted to create "rich models" with ngResource but failed horribly. What 
I want to achieve is to transform the JSON and add additional methods to 
it. Like you can do with Restnagular (
https://github.com/mgonto/restangular#adding-custom-methods-to-models).

I know that I can do something like 
this<https://github.com/angular-app/angular-app/blob/master/client/src/common/resources/users.js>.
 
But I want to add functions to the children. I tried it with a response 
interceptor and request transforms 
(plunkr: http://plnkr.co/edit/e6odb8sEPGUU13ZtuCS9) but couldn't get it to 
work :(

Does anyone else tried this before?

Cheers,

Sebastian

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to