Make AJAX request before bootstrapping Angular2 application [duplicate]
问题 This question already has answers here : How to pass parameters rendered from backend to angular2 bootstrap method (4 answers) Closed 3 years ago . In my Angular2 application I need to make a call to some function from AuthenticationService and bootstrap application based on results of this call. The problem is that AuthenticationService has dependency on HTTP from @angular/http and I have very little idea of how to build http service manually before calling bootstrap function. Accepted