Before downloading, the http module is not registered as a valid provider, so you cannot use the DI to create it.
Perhaps you can find a way to create it manually by importing Http and making
var http = new Http(..)
but you will have to satisfy the input arguments, and I'm not sure if he recommended trying to work with the modules before the application is in a stable boot state.
To keep this simple recommendation of mine, you need to do a pre angular check using another simple HTTP implementation like jquery etc.
source
share