Provider

Describes how the Injector should be configured.

查看"说明"...

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

参见

说明

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