2017-02-22 18:13:21 +00:00
|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { Routes, RouterModule } from '@angular/router';
|
|
|
|
|
2017-10-17 17:36:22 -07:00
|
|
|
import { ContactModule } from './contact/contact.module.3';
|
|
|
|
|
|
|
|
const routes: Routes = [
|
2017-02-22 18:13:21 +00:00
|
|
|
{ path: '', redirectTo: 'contact', pathMatch: 'full'},
|
|
|
|
{ path: 'crisis', loadChildren: 'app/crisis/crisis.module#CrisisModule' },
|
|
|
|
{ path: 'heroes', loadChildren: 'app/hero/hero.module.3#HeroModule' }
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
2017-10-17 17:36:22 -07:00
|
|
|
imports: [
|
|
|
|
ContactModule,
|
|
|
|
RouterModule.forRoot(routes)
|
|
|
|
],
|
2017-02-22 18:13:21 +00:00
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class AppRoutingModule {}
|