Angular Generic render awaiting Http subscriber confirmation

I have a generic Angular app that calls an ASP.Net Web API service.

I put the Console in an Angular call to the web service (which was initiated from either the component constructor or ngOnInit, I tried both) and the subscriber function in Typescript as well as the web API method.

When launching the application, I notice that the Angular Universal application is not waiting for the Web API result.

The last console write message I get is the web API, not a function in the caller call.

How can I get the Universal Angular app to wait for the result before rendering is complete?

+3
angular asp.net-web-api asp.net-core rxjs


source to share


No one has answered this question yet

Check out similar questions:

239
Angular HTTP GET with TypeScript http.get (...) error. map is not a function in [null]
42
Angular 2 Observed with Multiple Subscribers
3
Angular 4 - chain subscription
3
Server side hardening does not wait for API calls to complete
1
Angle 6: Passing Observable response to another observable
1
Angular universal app displays server side with outstanding micro- / macrotasks
1
Angular generic does not pass data from API requests
0
NgOnInit method called twice
0
Wait for HTTP request in Angular
0
How to wait for an HTTP service call to complete in a component



All Articles
Loading...
X
Show
Funny
Dev
Pics