My implementation is as follows:
App Routes :
export const AppRoutes: Routes = [
{
path: 'external',
loadChildren: './_Layouts/external-layout/external-layout.module#ExternalLayoutModule'
}]
external Routes:
export const ExternalRoutes: Routes = [
{ path: '', component: ExternalComponent, pathMatch: 'full', canActivate: [AuthGuard] },
{ path: 'programmes', component: ProgrammesComponent, canActivate: [AuthGuard] },
];
The issue is when the url is localhost:4200/external it works fine
But when it is localhost:4200/programmes OR localhost:4200/external/programmes
It is not working at all, What i am missing?
Thanks in advance!