Hi Alexander, Thanks for the response. Glad you enjoyed the article!! The next article on map/pipe is here: https://blog.angularindepth.com/reading-the-rxjs-6-sources-map-and-pipe-94d51fec71c2
I will cover SafeSubscriber in the next article.
Hello, great question!
Short answer is that the PR that added this feature did not add it to the CanLoad interface, so trying to return a UrlTree from a CanLoad guard simply results in a compilation error.
(can see it here if you’d like…
Hey Raffaele, glad you enjoyed the series.
Good question, I will take a look at your stackblitz today.
In short, when you lazy load a feature module, Angular will merge its route configuration (defined by
RouterModule.forChild()) with the root route configuration.
You can see this if you inject the…
Hi Attila, glad you enjoyed the article!
Good question. Unfortunately, it’s not possible to define query params or fragments which are specific to an outlet — they will always be global. Trying to route to something like
/home(router2:comp2#section1) will result in an error from the router.
Hi Khoi, great question!
I couldn’t find a clear technical answer in the Angular source code, so I went through some of the old issues on Angular’s git repo.
As far as I can tell, it seems like it’s simply a design decision by the Angular team.