I have a service that records page activity with the NavigationEnd
event from router.events
Am I able to change the url without changing/displaying new children components?
Right now I have
{
path: '',
component: MainComponent,
children: [
{ path: '**', component: DummyRoutingComponent}
]
}
DummyRoutingComponent displays nothing.
This way I can routerLink="what-ever-I-want"
and have it get recorded by my service. I realize this has some issues if the page were to grow more.
Is there a better way to achieve my results?