mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-25 11:07:29 +00:00
feature(angular2spa): Angular 2.0, Universal 2.0, TS 2.0
This commit is contained in:
@@ -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