import { NgModule } from '@angular/core' ; import { Routes , RouterModule , PreloadAllModules } from '@angular/router' ; const routes = [ { path : '' , loadChildren : ( ) => import ( '@dark-rush-photography/website/feature' ) . then ( ( module ) => module . WebsiteFeatureModule ) , } , { path : '**' , redirectTo : '/' } , ] ; @ NgModule ( { imports : [ RouterModule . forRoot ( routes , { initialNavigation : 'enabled' , preloadingStrategy : PreloadAllModules , } ) , ] , exports : [ RouterModule ] , } ) export class AppRoutingModule { }