blob: 4c27ed1adec3a3a1b23c4a368e692643067fdc3c [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 Scandolo43ffb672016-12-02 14:49:58 -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);