Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 696 Bytes

File metadata and controls

9 lines (5 loc) · 696 Bytes

Frequently Asked Questions

Q: How do I set up a provider (for HttpClient)?

A: If you are using standalone components, including standalone bootstrapping to launch your application, pull in the HTTPClient service provider as part of the application configuration. That's in the app.config.ts file.

If you are using NgModules to bootstrap the application instead, import HttpClientModule into the AppModule. In the app.module.ts file, add HttpClientModule to the imports array.

Demo: Here is the link to the location in the course that demonstrates setting up a provider.