Skip to content

Instantly share code, notes, and snippets.

@jessecogollo
Last active August 29, 2015 14:14
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 jessecogollo/3c91f2cc192e39752eaf to your computer and use it in GitHub Desktop.
Save jessecogollo/3c91f2cc192e39752eaf to your computer and use it in GitHub Desktop.
app.js router (Proyecto base aurelia.io)
import {Router} from 'aurelia-router';
export class App {
static inject() { return [Router]; }
constructor(router) {
this.router = router;
this.router.configure(config => {
config.title = 'Aurelia';
config.map([
{ route: ['','welcome'], moduleId: 'welcome', nav: true, title:'Welcome' },
{ route: 'flickr', moduleId: 'flickr', nav: true }
]);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment