Skip to content

Instantly share code, notes, and snippets.

@LeoNero
Created November 14, 2016 23:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeoNero/a1b758fa35446652eec09b114091ff58 to your computer and use it in GitHub Desktop.
Save LeoNero/a1b758fa35446652eec09b114091ff58 to your computer and use it in GitHub Desktop.
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