import { NgModule } from '@angular/core' ; import { RouterModule , Routes } from '@angular/router' ; import { IdleComponent } from '@microsoft/windows-admin-center-sdk/angular' ; const appRoutes = [ { path : 'idle' , component : IdleComponent } , { path : '' , loadChildren : 'app/default/default.module#DefaultModule' } , { path : '**' , redirectTo : '' } ] ; @ NgModule ( { imports : [ RouterModule . forRoot ( appRoutes , { initialNavigation : true } ) ] , exports : [ RouterModule ] } ) export class AppRoutingModule { }