Provider

type-alias

npm Package @angular/core
Module import { Provider } from '@angular/core';
Source core/src/di/provider.ts

Describes how the Injector should be configured.

type Provider = TypeProvider | ValueProvider | ClassProvider | ExistingProvider | FactoryProvider | any[];

How To Use

See TypeProvider, ValueProvider, ClassProvider, ExistingProvider, FactoryProvider.

Description

For more details, see the "Dependency Injection Guide".

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v4.angular.io/api/core/Provider