Advertisement
Guest User

Untitled

a guest
Dec 5th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. configureRouter(config, router) {
  2. this.router = router;
  3. config.title = 'My Application Title';
  4. config.map([
  5. { route: ['', 'home'], name: 'home', moduleId: 'homefolder/home' },
  6. { route: 'someparent', name: 'someparentnamefornamedroutes-optional', moduleId: 'someparentfolder/someparent' },
  7. ]);
  8. }
  9.  
  10. // imports go here, like: import { inject } from 'aurelia-framework';
  11.  
  12. // injects go here, like: @inject(MyClass)
  13. export class SomeParent {
  14. constructor() {
  15.  
  16. }
  17. }
  18.  
  19. <!-- src/settings/school.html -->
  20. <template>
  21. <require from="./child1"></require>
  22. <require from="./child2"></require>
  23.  
  24. <h1>Some Parent Page Title</h1>
  25.  
  26. <h2>Child Component 1</h2>
  27. <child-component-one></child-component-one>
  28.  
  29. <h2>Child Component 2</h2>
  30. <child-component-two></child-component-two>
  31.  
  32. </template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement