Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- App.html
- <template>
- <h1>${message}</h1>
- <h2>Routes here</h2>
- <router-view></router-view>
- </template>
- app.js
- export class App {
- constructor() {
- this.message = 'Hello World!';
- }
- configureRouter(config, router) {
- this.router = router;
- config.title = 'Aurelia';
- config.map([
- { route: 'school', name: 'school', moduleId: 'school', nav: true }
- ]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement