Skip to content

Instantly share code, notes, and snippets.

@DamnedScholar
Created September 21, 2016 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DamnedScholar/7f7b41a40ba4969daabe5d0461377afb to your computer and use it in GitHub Desktop.
Save DamnedScholar/7f7b41a40ba4969daabe5d0461377afb to your computer and use it in GitHub Desktop.
export class App {
configureRouter(config, router) {
config.title = 'Carries';
config.options.pushState = true;
config.map([
{
route: ['', 'home'],
name: 'home',
moduleId: './pages/home',
nav: true,
title: 'Home'
},
{
route: 'menu',
name: 'menu',
moduleId: './pages/menu',
nav: true,
title: 'Menu'
},
{
route: 'menu/:item',
name: 'menu item',
moduleId: './pages/menu',
nav: false,
title: 'Menu Item'
},
{
route: 'crew',
name: 'crew',
moduleId: './pages/crew',
nav: true,
title: 'Carrie\'s Crew'
},
{
route: 'map',
name: 'map',
moduleId: './pages/map',
nav: true,
title: 'Find Us'
}
]);
this.router = router;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment