I want to access to the dynamic segment on a route but the params are always undefined.
I have the next route defined on the router:
this.route('send', {path: '/send/:solName/:id/:userId'}, function() {});
And In my route I have this:
export default Ember.Route.extend({
model: function (params){
console.info(params);
return {
solName: params.solName,
id: params.id,
userId: params.userId
}
}
});
Any idea why the params are always undefined?
Aucun commentaire:
Enregistrer un commentaire