The routing path in angular5 defines a URL, through parameters, but the page will not be reloaded if the component is the same!

routing is defined as the same component, but a Type is passed to distinguish different order types, but the component will only be loaded once after clicking. Clicking on the paid page will not reload, and the parameters will remain on the previous page.

{path: "order/list/:type", component: OrderListComponent,canActivate:[AuthService]},

clipboard.png

Mar.11,2021

the same route will not be triggered again. Try this:

this.router.events.subscribe((e: any) => {
   ...
})
Menu