Configures the Injector to return an instance of Type when `Type' is used as the token.
Injector
Type
Create an instance by invoking the new operator and supplying additional arguments. This form is a short form of TypeProvider;
new
TypeProvider
For more details, see the "Dependency Injection Guide".
{@example core/di/ts/provider_spec.ts region='TypeProvider'}
Generated using TypeDoc
Configures the
Injectorto return an instance ofTypewhen `Type' is used as the token.Create an instance by invoking the
newoperator and supplying additional arguments. This form is a short form ofTypeProvider;For more details, see the "Dependency Injection Guide".
Usage Notes
{@example core/di/ts/provider_spec.ts region='TypeProvider'}
Public Api