jeudi 9 août 2018

Everytime i want go to a route path, when an invalid path is given

import EmberRouter from '@ember/routing/router'; 

const Router = EmberRouter.extend({ 
}); 


Router.map(function() { 
  this.route('index', {path: '/templates'}); 
  this.route('show', {path: '/templates/:id'}); 
}); 

export default Router;

I want to go to /templates, whenever any invalid path is given like /wrongquery.




Aucun commentaire:

Enregistrer un commentaire