Aurelia single state store based on RxJS
THIS IS WORK IN PROGRESS, DO NOT USE YET FOR PRODUCTION
Install the npm dependency via
| <template> | |
| <h1>Frameworks</h1> | |
| <ul> | |
| <li repeat.for="framework of state.frameworks">${framework}</li> | |
| </ul> | |
| </template> | |
| <template> | |
| <h1>${message}</h1> | |
| </template> |
| <template> | |
| <h1>${message}</h1> | |
| </template> |
| import {Router} from 'aurelia-router'; | |
| import bootstrap from 'bootstrap'; | |
| import {EventAggregator} from 'aurelia-event-aggregator'; | |
| export class App { | |
| static inject() { return [ Router, EventAggregator ];} | |
| constructor(router, ea) { | |
| this.router = router; | |
| this.isLoggedIn = false; |