blob: 53fa2cc5879a843cc4693c81d1a9100cb0acf31f [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 Scandolo40f8fa92016-12-07 09:21:35 -08006import {LoginComponent} from './views/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);