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


source to share





All Articles