import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; const routes: Routes = [ { path: '', redirectTo: 'screen/welcome', pathMatch: 'full' }, { path: 'index.jsp', redirectTo: 'screen/home' }, { path: 'screen/home', loadChildren: () => import('./features/home/home.routes').then(m => m.HOME_ROUTES) }, { path: 'screen/module1', loadChildren: () => import('./features/module1/module1.routes').then(m => m.MODULE1_ROUTES) }, { path: 'screen/about', loadChildren: () => import('./features/about/about.routes').then(m => m.ABOUT_ROUTES) }, { path: 'screen/welcome', loadChildren: () => import('./features/welcome/welcome.routes').then(m => m.WELCOME_ROUTES) }, ]; @NgModule({ imports: [ RouterModule.forRoot(routes), ], }) export class AppRoutingModule {}