Monday, 29 May 2023

angular pointing different routes to same componet

 https://stackoverflow.com/questions/39752442/different-routes-same-component


You could also define a redirect to a specific path:

{ path: '**', redirectTo: '/home', pathMatch: 'full' },

where /home is the route you want to redirect to.

path: '**' resolves all paths which are not defined

No comments:

Post a Comment