p.
exported from angular2/di_annotations
defined in angular2/src/di/annotations.js (line 34)
:markdown
A parameter annotation that specifies a `Promise` of a dependency.
```
class AComponent {
constructor(@InjectPromise(MyService) aServicePromise:Promise) {
aServicePromise.then(aService:MyService => ...);
}
}
```
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(token)
:markdown
.l-sub-section
h3 token
:markdown