@Om_Prakash_Bairagi wrote:
I want to pass two (or more) arguments to this.store.find() ; I have app.router.js like
Router.map(function() { this.route('posts'); this.route('post', { path: '/post/:post_id' }); });
and
dynamic route's model
model(params) { return this.store.findRecord('photo', params.photo_id); }
this will go to /photo/photo_id
now I tried to pass couple of arguments then it was giving error: no model is defined for some_photo_it (say id) I tried this:
model(params) { return this.store.findRecord('photo', params.photo_id,{param1:0, param2:25}); }
please answer.
Posts: 1
Participants: 1