I have this in my .routing.ts file
export const routing = RouterModule.forChild([
{
path: 'page/:id',
component: PageComponent
}]);
My PageComponent
file checks the id parameter and loads the data accordingly. In previous versions of the router, if i went from /page/4 to /page/25, the page would "reload" and the components would update.
Now when i try navigating to /page/X where X is the id, it only ever loads the first time, then the url changes, but the components do not "reload" again.
Is there something that needs to be passed in to force my components to reload, and call the ngOnInit event?