ng2 2.0, Universal 2.0, TS 2.0, Preboot 4.*

This commit is contained in:
Mark Pieszak
2016-09-19 09:12:03 +01:00
committed by SteveSandersonMS
parent b71d139eb5
commit ce0d2089d2
18 changed files with 273 additions and 1166 deletions

View File

@@ -1,9 +1,8 @@
import { RouterConfig } from '@angular/router';
import { Home } from './components/home/home';
import { FetchData } from './components/fetch-data/fetch-data';
import { Counter } from './components/counter/counter';
import { Routes } from '@angular/router';
export const routes: RouterConfig = [
import { Home, FetchData, Counter } from './components';
export const routes: Routes = [
{ path: '', redirectTo: 'home', pathMatch: 'full' },
{ path: 'home', component: Home },
{ path: 'counter', component: Counter },