Sign in
Log inSign up
Parham

49 likes

2.3K reads

2 comments

Abhay
Abhay
Jul 25, 2021

Hi Parham

Why there is need to use Auxiliary Routes? when we can do the same things by lazy-load the necessary components as supprted by Angular 9 onwards.

1
1 reply
Parham
Parham
Author
Jul 25, 2021

Hi Elliot, You are right. You can use the Webpack import feature on Angular 9+. I included a link at the end of this blog to the Netanel Basal article which teaches that technique. In my case, lazy loading was one of the requirements. I needed bookmarking through URL as well. This is where the Angular router naturally handles the state for me with the URL being passed. I can also pass extra query params as well.

1