Newer
Older
import { AboutComponent } from './about/about.component';
// import { TestControllerComponent } from './test-controller';

Martin Mechtel
committed
import { StartComponent } from './start/start.component';
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
const routes: Routes = [
{path: '', redirectTo: 'start', pathMatch: 'full'},

Martin Mechtel
committed
{path: 'start', component: StartComponent},
{path: 'about', component: AboutComponent}
// {path: 't', component: TestControllerComponent}

Martin Mechtel
committed
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule { }