I have following code
{
path: 'clientReports',
component: ClientsRootComponent,
children: [
{
path: ':reportId',
component: ClientsReportComponent,
children: [
{
path: ':countryId/:branchId',
component: ClientsGridComponent,
}
]
}
]
}
and following links
app/clientReports/1/1/1
app/clientReports/2/1/1
app/clientReports/3/1/1
Whenever I click a link I can see that ClientsReportComponent
does not reload and instead existing one is being reused and caused me problem with the services lifetime that are declared in the providers of this component.
Shouldn't be the component ClientsReportComponent
reloaded every time a new link is clicked?