Last active
August 29, 2015 14:14
-
-
Save jessecogollo/3c91f2cc192e39752eaf to your computer and use it in GitHub Desktop.
app.js router (Proyecto base aurelia.io)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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