ConstructorSansProvider
From Get docs
< @angular/coreAngular/docs/7/api/core/constructorsansprovider
ConstructorSansProvider
interface
Configures the Injector
to return an instance of a token.
interface ConstructorSansProvider {
deps?: any[]
}
Description
For more details, see the "Dependency Injection Guide".
Properties
Property | Description |
---|---|
deps?: any[]
|
A list of token s which need to be resolved by the injector. The list of values is then used as arguments to the useClass constructor.
|
Usage notes
Example
@Injectable(SomeModule, {deps: []})
class MyService {}
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v7.angular.io/api/core/ConstructorSansProvider