Created
November 14, 2016 23:17
-
-
Save LeoNero/a1b758fa35446652eec09b114091ff58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {inject} from 'aurelia-framework'; | |
import {Router} from 'aurelia-router'; | |
import AppRouterConfig from './app.router.config'; | |
import {AuthService} from 'aurelia-authentication'; | |
import {BindingEngine} from 'aurelia-framework'; | |
import {EventAggregator} from 'aurelia-event-aggregator'; | |
@inject(Router, AppRouterConfig, AuthService, BindingEngine, EventAggregator) | |
export class Default { | |
_isAuthenticated = false; | |
user = null; | |
constructor(router, appRouterConfig, authService, bindingEngine, eventAggregator) { | |
this.router = router; | |
this.appRouterConfig = appRouterConfig; | |
this.authService = authService; | |
this.bindingEngine = bindingEngine; | |
this.eventAggregator = eventAggregator; | |
} | |
activate() { | |
this.appRouterConfig.configure(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment