mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-24 02:30:13 +00:00
ng2 2.0, Universal 2.0, TS 2.0, Preboot 4.*
This commit is contained in:
committed by
SteveSandersonMS
parent
b71d139eb5
commit
ce0d2089d2
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user