ConstructorSansProvider

From Get docs
< @angular/coreAngular/docs/10/api/core/constructorsansprovider


ConstructorSansProvider

interface

Configures the Injector to return an instance of a token.

interface ConstructorSansProvider {
  deps?: any[]
}

Child interfaces

  • ConstructorProvider


See also

Properties

Property Description
deps?: any[] A list of tokens to be resolved by the injector.

Usage notes

@Injectable(SomeModule, {deps: []})
class MyService {}

© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/core/ConstructorSansProvider