blob: 724aa65d7c7a7e18d7f30c05e5bcdda2aa2faa11 [file] [log] [blame]
Matteo Scandolod819c922016-12-02 14:06:14 -08001/// <reference path="../../typings/index.d.ts"/>
2
3import {Component} from '@angular/core';
4import {RouterModule, Routes} from '@angular/router';
5import {HelloComponent} from './hello';
Matteo Scandolo5e5c12b2016-12-05 16:17:52 -08006import {LoginComponent} from './components/login/login.component';
Matteo Scandolod819c922016-12-02 14:06:14 -08007
8@Component({
Matteo Scandolo43ffb672016-12-02 14:49:58 -08009 selector: 'xos-root',
10 template: `
11 <router-outlet></router-outlet>
12 `
Matteo Scandolod819c922016-12-02 14:06:14 -080013})
14export class RootComponent {}
15
16export const routes: Routes = [
17 {
18 path: '',
19 component: HelloComponent
Matteo Scandolo43ffb672016-12-02 14:49:58 -080020 },
21 {
22 path: 'login',
23 component: LoginComponent
Matteo Scandolod819c922016-12-02 14:06:14 -080024 }
25];
26
27export const routing = RouterModule.forRoot(routes);