Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ResolvedReflectiveProvider

An internal resolved representation of a Provider used by the Injector.

It is usually created automatically by Injector.resolveAndCreate.

It can be created manually, as follows:

Example (live demo)

var resolvedProviders = Injector.resolve([{ provide: 'message', useValue: 'Hello' }]);
var injector = Injector.fromResolvedProviders(resolvedProviders);

expect(injector.get('message')).toEqual('Hello');
experimental

Hierarchy

  • ResolvedReflectiveProvider

Implemented by

Index

Properties

key

A key, usually a Type<any>.

multiProvider

multiProvider: boolean

Indicates if the provider is a multi-provider or a regular provider.

resolvedFactories

resolvedFactories: ResolvedReflectiveFactory[]

Factory function which can return an instance of an object represented by a key.

Generated using TypeDoc