index.html <base href="/"/> main component template html <router-outlet> </router-outlet> main module .ts Include Lazy loading format RouterModule.forRoot(
[
{
path: 'login',
component: LoginComponent
},
{ path: '**',
redirect: 'login',
pathMatch: 'full'
}
{ path: 'welcome',
LoadChildren : import('./welcome/welcome.module').then(m => m.WelcomeModule)
}
......
]
)