Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. App.html
  2. <template>
  3. <h1>${message}</h1>
  4. <h2>Routes here</h2>
  5. <router-view></router-view>
  6. </template>
  7.  
  8. app.js
  9. export class App {
  10. constructor() {
  11. this.message = 'Hello World!';
  12. }
  13.  
  14. configureRouter(config, router) {
  15. this.router = router;
  16. config.title = 'Aurelia';
  17. config.map([
  18. { route: 'school', name: 'school', moduleId: 'school', nav: true }
  19. ]);
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement