Relative Content

Tag Archive for angularangular-router

Route reuse strategy recommendations

I am implementing router reuse strategy to reuse a component on multiple routes. The reuse is not because it’s the same component but because the user will a lot of interactions with it, and I need to preserve all the states, data, etc.

Router redirecting to nowhere on canActivate=false

I have a route with a CanActivate: [isEmployee]. I’m testing this for falseness. It keeps redirecting to “” and then getting stuck. Header/footer prints, blank body. https://localhost/foo => https://localhost with no trailing slash.