Last active
April 3, 2016 14:36
-
-
Save hakant/8c94080e4c61ea04bfaf1a009dbcc25b to your computer and use it in GitHub Desktop.
Hackathon Planner - main.js
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 'bootstrap'; | |
import {AuthService} from './infrastructure/auth-service'; | |
import {inject} from 'aurelia-framework'; | |
import 'fetch'; | |
export function configure(aurelia) { | |
aurelia.use | |
.standardConfiguration() | |
.developmentLogging() | |
.plugin('aurelia-validation'); | |
aurelia.start().then(() => { | |
var auth = aurelia.container.get(AuthService); | |
let root = auth.isAuthenticated() ? 'app' : 'login'; | |
aurelia.setRoot(root); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment