62 lines
766 B
Plaintext
62 lines
766 B
Plaintext
|
|
||
|
p.location-badge.
|
||
|
exported from <a href='../di'>angular2/di</a>
|
||
|
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.32/modules/angular2/src/di/metadata.ts#L1-L17">angular2/src/di/metadata.ts (line 1)</a>
|
||
|
|
||
|
:markdown
|
||
|
A parameter metadata that specifies a dependency.
|
||
|
|
||
|
```
|
||
|
class AComponent {
|
||
|
constructor(@Inject(MyService) aService:MyService) {}
|
||
|
}
|
||
|
```
|
||
|
|
||
|
|
||
|
.l-main-section
|
||
|
h2 Members
|
||
|
.l-sub-section
|
||
|
h3 constructor
|
||
|
|
||
|
|
||
|
pre.prettyprint
|
||
|
code.
|
||
|
constructor(token: any)
|
||
|
|
||
|
:markdown
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
.l-sub-section
|
||
|
h3 token
|
||
|
|
||
|
|
||
|
:markdown
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
.l-sub-section
|
||
|
h3 toString
|
||
|
|
||
|
|
||
|
pre.prettyprint
|
||
|
code.
|
||
|
toString()
|
||
|
|
||
|
:markdown
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|