How to call a external API from Angular Application after executing ng serve ? (not with browser loading)
I have to register my Angular Application in one service registry (Eureka) by calling a external POST API before the application loads. I have tried with APP_INITIALIZER but it is calling the API once we are loading the application in browser. I want to execute the API before loading the app in browser (browser will not be open while the api call).
Something like when I start the app with "ng serve" I want to execute API. Is there any way?
Top comments (0)