Skip to content
Snippets Groups Projects
app-routing.module.ts 706 B
Newer Older
  • Learn to ignore specific revisions
  • Martin Mechtel's avatar
    Martin Mechtel committed
    import { TestControllerComponent } from './test-controller';
    
    import { AboutComponent } from './about/about.component';
    
    import { StartComponent } from './start/start.component';
    import { NgModule } from '@angular/core';
    import { Routes, RouterModule } from '@angular/router';
    
    
    const routes: Routes = [
    
    Martin Mechtel's avatar
    Martin Mechtel committed
      {path: '', component: StartComponent, pathMatch: 'full'},
    
      {path: 'start', component: StartComponent},
    
    Martin Mechtel's avatar
    Martin Mechtel committed
      {path: 'about', component: AboutComponent},
    
      {path: 'check', loadChildren: './sys-check/sys-check.module#SysCheckModule'},
    
    Martin Mechtel's avatar
    Martin Mechtel committed
      {path: 't', component: TestControllerComponent}
    
    ];
    
    @NgModule({
      imports: [RouterModule.forRoot(routes)],
      exports: [RouterModule]
    })
    export class AppRoutingModule { }