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

StaticProvider

Describes how the Injector should be configured in a static way (Without reflection).

See more...

type StaticProvider = ValueProvider | ExistingProvider | StaticClassProvider | ConstructorProvider | FactoryProvider | any[];
      
      type StaticProvider = ValueProvider | ExistingProvider | StaticClassProvider | ConstructorProvider | FactoryProvider | any[];
    

See also

Description

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