mercredi 2 décembre 2015

this.transitionToRoute doesn't work without params

Good day StackOverflow,

// routes
Router.map(function() {
    this.resource('myresource');
    this.resource('myresource', { path: 'myresource/:param1' });
});

// call transition from controller when switch not selected any params
// doesn't work...
this.transitionToRoute('myresource');

Need help, i want go to 'http://ift.tt/1PwpJMr' if not selected any params on view. But it's not work :(




Aucun commentaire:

Enregistrer un commentaire