Providers
noun
say it: “pruh-VY-derz” /prəˈvaɪdərz/
Registrations that tell Angular how to create the services it injects.
What is Providers?
Providers tell Angular's dependency injection how to create a service. They are registered in app.config.ts, on a route or on a component.
export const appConfig: ApplicationConfig = {
providers: [provideRouter(routes), provideHttpClient()],
};
In a sentence
- “We list provideHttpClient() in the app's providers.”
Level: Journeyman · More Angular terms at this level
Updated