import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { ComposeMessageComponent } from './compose-message/
compose-message.component';
import { PageNotFoundComponent } from './page-not-found/
page-not-found.component';
import { authGuard } from './auth/auth.guard';
import { SelectivePreloadingStrategyService } from './
selective-preloading-strategy.service';
const appRoutes: Routes = [
{
path: 'compose',
component: ComposeMessageComponent,
outlet: 'popup'
},
{
path: 'admin',
loadChildren: () => import('./admin/admin.module').then(m
=> m.AdminModule),
canMatch: [authGuard]
},
{
path: 'crisis-center',
loadChildren: () => import('./crisis-center/crisis-center.
module').then(m => m.CrisisCenterModule),
data: { preload: true }
},
{ path: '', redirectTo: '/superheroes', pathMatch: 'full' }
,
{ path: '**', component: PageNotFoundComponent }
];
@NgModule({