blob: 53fa2cc5879a843cc4693c81d1a9100cb0acf31f [file] [log] [blame]
/// <reference path="../../typings/index.d.ts"/>
import {Component} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {HelloComponent} from './hello';
import {LoginComponent} from './views/login/login.component';
@Component({
selector: 'xos-root',
template: `
<router-outlet></router-outlet>
`
})
export class RootComponent {}
export const routes: Routes = [
{
path: '',
component: HelloComponent
},
{
path: 'login',
component: LoginComponent
}
];
export const routing = RouterModule.forRoot(routes);