p.location-badge.
exported from angular2/di
defined in angular2/src/di/binding.ts (line 246)
:markdown
An internal resolved representation of a Binding
used by the Injector
.
A Binding
is resolved when it has a factory function. Binding to a class, alias, or
value, are just convenience methods, as Injector
only operates on calling factory
functions.
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(/**
* A key, usually a `Type`.
*/
public key: Key, /**
* Factory function which can return an instance of an object represented by a key.
*/
public factory: Function, /**
* Arguments (dependencies) to the `factory` function.
*/
public dependencies: List<Dependency>, /**
* Specifies whether the `factory` function returns a `Promise`.
*/
public providedAsPromise: boolean)
:markdown
.l-sub-section
h3 dependencies
:markdown
Arguments (dependencies) to the `factory` function.
.l-sub-section
h3 factory
:markdown
Factory function which can return an instance of an object represented by a key.
.l-sub-section
h3 key
:markdown
A key, usually a `Type`.
.l-sub-section
h3 providedAsPromise
:markdown
Specifies whether the `factory` function returns a `Promise`.