import {Component, ViewModel, performAuthentication} from '@dezrez/core'; import {router} from '@dezrez/core'; import * as config from './config'; import {routes} from './routes'; @Component({ view: require('./shell.html') }) class Shell extends ViewModel { router = router.map(routes) .buildNavigationModel(); constructor() { super(); } activate() { return performAuthentication({ router, config, successUrl: '/' }); } } export const shell = new Shell();