meanapp icon indicating copy to clipboard operation
meanapp copied to clipboard

Model methods

Open naviruishen opened this issue 9 years ago • 0 comments

Thanks for the tutorial, its Neat and Easy to understand! Ive been using it as a base for my APP. However, I dont know how can i implement my schema methods inside the controller?
Example:

controller: Resource(app, '', route, app.models.user).rest();

schema.method: UserSchema.methods.generateJwt = function(){};

naviruishen avatar May 17 '16 07:05 naviruishen