mercredi 31 octobre 2018

Ember: How can I pass multiple parameters to route through params

//router.js

Router.map(function(){
    this.route('posts');
    this.route('profile' { path: '/profile/:id1/:id2' });
});

I want to pass two id's to the profile route some how. Is that possible? tell me a solution to do it. also tell how should I set the profile/route.js file

Thanks in advance




Aucun commentaire:

Enregistrer un commentaire