2 |
3 | Countdown: ${3 - $index - 1}!
4 | ${message}
5 |
14 |
--------------------------------------------------------------------------------
/example/app.js:
--------------------------------------------------------------------------------
1 | export class App {
2 |
3 | constructor() {
4 | this.message = 'Hello world';
5 | }
6 |
7 | configureRouter(config, router) {
8 | config.map([
9 | { route: ['', 'home'], name: 'home', moduleId: 'routes/home.js', title: 'Home', nav: true },
10 | { route: 'contact', name: 'contact', moduleId: 'routes/contact.js', title: 'Contact', nav: true }
11 | ]);
12 | this.router = router;
13 | }
14 | }
--------------------------------------------------------------------------------
/example/components/foo.css:
--------------------------------------------------------------------------------
1 | .foo {
2 | display: inline-block;
3 | padding: 10px;
4 | background: green;
5 | color: #fff;
6 | }
7 |
--------------------------------------------------------------------------------
/example/components/foo.html:
--------------------------------------------------------------------------------
1 |