
1 minute read
Difference Between Basic Routing Flow and Angular
Resolver Flow
Basic Routing Flow
Advertisement
● The end-user clicks on the link.
● The Angular framework simply loads data from the respective component.
Angular Resolver Flow
● The end-user make click on the link.
● Angular executes certain codes and returns a value or data observable.
● You can collect the returned value or observable in the constructor or ngOnInit, in the data provider class of your component which is about to load.
● Use the collected data for your purpose.
● Now you can load your component.
Steps 2, 3, and 4 in Angular Resolver are carried out using a piece of code called Resolver. The execution process between clicking the link and loading the component is dealt with by Resolver, which is an intermediate code in Angular development.