1

I use:

let adapter: UpgradeAdapter = new UpgradeAdapter();
[...]
adapter.bootstrap(document.body, ["app"]);

To bootstap my Angular application. Now I need to add HTTP_PROVIDERS to this. I have tried many variations but none did work including:

adapter.bootstrap(document.body, ["app", HTTP_PROVIDERS]);

adapter.bootstrap(document.body, ["app", [HTTP_PROVIDERS]]);

Does anyone know the correct way?

1 Answer 1

2

You can try

adapter.addProvider(HTTP_PROVIDERS); 
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.