Skip to content
Snippets Groups Projects
app-routing.module.ts 614 B
Newer Older
  • Learn to ignore specific revisions
  • 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 { }