2015-04-20 13:57:43 -07:00
2015-04-22 08:06:51 -07:00
p.location-badge.
2015-06-01 22:51:00 -07:00
exported from <a href='../di'>angular2/di</a>
2015-06-19 12:08:22 -07:00
defined in <a href="https://github.com/angular/angular/tree/3a0410a/modules/angular2/src/di/binding.ts#L255-L287">angular2/src/di/binding.ts (line 255)</a>
2015-04-20 13:57:43 -07:00
:markdown
2015-04-26 08:01:04 -07:00
An internal resolved representation of a <a href='Binding-class.html'><code>Binding</code></a> used by the <a href='Injector-class.html'><code>Injector</code></a>.
2015-04-20 13:57:43 -07:00
2015-06-01 22:51:00 -07:00
A <a href='Binding-class.html'><code>Binding</code></a> is resolved when it has a factory function. Binding to a class, alias, or
value, are just convenience methods, as <a href='Injector-class.html'><code>Injector</code></a> only operates on calling factory
functions.
2015-04-20 13:57:43 -07:00
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
2015-06-19 12:08:22 -07:00
constructor(key: Key, factory: Function, dependencies: List<Dependency>, providedAsPromise: boolean)
2015-04-20 13:57:43 -07:00
:markdown
2015-06-01 22:51:00 -07:00
2015-04-20 13:57:43 -07:00
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 key
2015-04-20 13:57:43 -07:00
:markdown
2015-05-01 06:37:29 -07:00
2015-06-19 12:08:22 -07:00
A key, usually a `Type`.
2015-06-01 22:51:00 -07:00
2015-04-20 13:57:43 -07:00
.l-sub-section
h3 factory
:markdown
2015-05-01 06:37:29 -07:00
2015-04-20 13:57:43 -07:00
Factory function which can return an instance of an object represented by a key.
2015-06-01 22:51:00 -07:00
2015-04-20 13:57:43 -07:00
.l-sub-section
2015-06-19 12:08:22 -07:00
h3 dependencies
2015-04-20 13:57:43 -07:00
:markdown
2015-05-01 06:37:29 -07:00
2015-06-19 12:08:22 -07:00
Arguments (dependencies) to the `factory` function.
2015-06-01 22:51:00 -07:00
2015-04-20 13:57:43 -07:00
.l-sub-section
h3 providedAsPromise
:markdown
2015-05-01 06:37:29 -07:00
2015-04-20 13:57:43 -07:00
Specifies whether the `factory` function returns a `Promise`.
2015-06-01 22:51:00 -07:00
2015-04-20 13:57:43 -07:00