Hacker News new | ask | show | jobs
by neebz 4305 days ago
This is superb work.

Just one question, does it have the feature to add offline custom methods to the model e.g. I want to add instance calculateAge() for each User ? I couldn't find it in the guides.

Angular-RestMod provides it > https://github.com/platanus/angular-restmod#custom-methods

(basically we use node on the server and many times we just want to reuse the same server side methods on the client)

1 comments

You can add custom behavior to model instances via the "methods" option when defining a resource. http://angular-data.pseudobry.com/documentation/guide/angula...