TypeProvider

Stable

Interface

What it does

Configures the Injector to return an instance of Type when `Type' is used as token.

How to use

@Injectable() class MyService {} const provider: TypeProvider = MyService;

Interface Overview

interface TypeProvider extends Type {

}

Interface Description

exported from @angular/core/index, defined in @angular/core/src/di/provider.ts