Newer
Older

Martin Mechtel
committed
import { TestControllerComponent } from './test-controller';
import { StartComponent } from './start/start.component';
import { HomeComponent } from './home/home.component';
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
const routes: Routes = [
{path: '', redirectTo: 'home', pathMatch: 'full'},
{path: 'home', component: HomeComponent},
{path: 'start', component: StartComponent},
{path: 't', component: TestControllerComponent}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }