Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- configureRouter(config, router) {
- this.router = router;
- config.title = 'My Application Title';
- config.map([
- { route: ['', 'home'], name: 'home', moduleId: 'homefolder/home' },
- { route: 'someparent', name: 'someparentnamefornamedroutes-optional', moduleId: 'someparentfolder/someparent' },
- ]);
- }
- // imports go here, like: import { inject } from 'aurelia-framework';
- // injects go here, like: @inject(MyClass)
- export class SomeParent {
- constructor() {
- }
- }
- <!-- src/settings/school.html -->
- <template>
- <require from="./child1"></require>
- <require from="./child2"></require>
- <h1>Some Parent Page Title</h1>
- <h2>Child Component 1</h2>
- <child-component-one></child-component-one>
- <h2>Child Component 2</h2>
- <child-component-two></child-component-two>
- </template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement