InvalidProviderError

export class InvalidProviderError

exported from angular2/core defined in angular2/src/core/di/exceptions.ts (line 163)

Thrown when an object other then Provider (or Type) is passed to Injector creation.

Example (live demo)

expect(() => Injector.resolveAndCreate(["not a type"])).toThrowError();

Constructor

constructor(provider: any)

Not Yet Documented