I am to loading some main data just after user logged in and in main layout page. There is multiple API request are done for load main data. so i want to put on hold other API request until the main api request is finished
The main API requests is done in sequence manner also.
I have already added HttpInterceptor for adding some headers and all.
Explaining what happening right now.
- i have _layout components and its have tags so all other pages will loads in this components.
- _layout is loading some main data on ngOnInit which will use in further API requests
Issue is while refreshing the page,other API request is not waiting for to complete the requests of main API requests which started in _layout components.
we cant identify how many API requests will call after _layout components init because all routing is done in this.