3 ms·
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
by neebz 12y 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 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)
- tsm26 12y agoYou can add custom behavior to model instances via the "methods" option when defining a resource. http://angular-data.pseudobry.com/documentation/guide/angular-data-resource/custom http://angular-data.pseudobry.com/documentation/guide/angula...