This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

Provider

Describes how the Injector should be configured.

See more...

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

See also

Description

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