2020-03-23 17:31:55 +02:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
2017-02-22 18:13:21 +00:00
|
|
|
|
2017-10-27 15:48:50 -07:00
|
|
|
import { AboutComponent } from './about/about.component';
|
2017-02-22 18:13:21 +00:00
|
|
|
|
2020-03-23 17:31:55 +02:00
|
|
|
export const routes: Routes = [
|
|
|
|
|
{ path: '', redirectTo: 'dashboard', pathMatch: 'full'},
|
|
|
|
|
{ path: 'about', component: AboutComponent },
|
|
|
|
|
{ path: 'heroes', loadChildren: () => import('./hero/hero.module').then(m => m.HeroModule)},
|
|
|
|
|
];
|
|
|
|
|
|
2017-02-22 18:13:21 +00:00
|
|
|
@NgModule({
|
|
|
|
|
imports: [
|
2020-03-23 17:31:55 +02:00
|
|
|
RouterModule.forRoot(routes),
|
2017-02-22 18:13:21 +00:00
|
|
|
],
|
|
|
|
|
exports: [ RouterModule ] // re-export the module declarations
|
|
|
|
|
})
|
2020-03-23 17:31:55 +02:00
|
|
|
export class AppRoutingModule { }
|