Click here to Skip to main content
15,887,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

In my angular application, I'm having a method(observable) to retrieve the user info on the ap.component and the method is inside a third party library function(which use to authentication purpose), which is promise.

my problem is - while app.component method executing, homepage component's function also get fired, and they're also having the observable method to retrieve data. how can I hold the app.component method put hold until its get completed in this case?

note - forkjoin approach is not suitable for my scenario.

Really appreciate the reply ASAP.

What I have tried:

i want to hold the http request while its completed, may be with the interceptor?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900