ClassProvider

Stable

Interface

What it does

Configures the Injector to return an instance of useClass for a token.

How to use

@Injectable() class MyService {} const provider: ClassProvider = {provide: 'someToken', useClass: MyService};

Interface Overview

interface ClassProvider {
provide : any
useClass : Type<any>
multi : boolean

}

Interface Description

Interface Details

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