Optional param vs QueryParam
I just found out the optional parameters, and I fell into confusion.
Considering the two following examples:
Angular router reuse strategy – use same component on two routes
I need to use same component on two different routes, and I am reusing both routes. I am following this example:
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.
Angular Route Reuse Strategy
I am trying using it for the first time. I am using this example as a stating point:
What the benefit of PreloadAllModules if we applied lazy-loading?
As I understand, the benefit of lazy-loading it’s reduce your bundle of network, and load the modules when we needed.
Angular router.navigate is not changing url, but only on first load
In my component I have something which is basically:
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.
Back click with angular router causing continuous checking of NgIfs on other child components
Using angular 13, I’m working on a page that has a dashboard of list of tiles for each user project. When the user clicks on the tile, I route to an inbox for that page using a router-outlet. This all works.