p.
exported from angular2/di
defined in angular2/src/di/key.js (line 17)
:markdown
A unique object used for retrieving items from the Injector
.
Keys have:
- a system-wide unique `id`.
- a `token`, usually the `Type` of the instance.
Keys are used internally by the Injector
because their system-wide unique `id`s allow the
injector to index in arrays rather than looking up items in maps.
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(token, id)
:markdown
.l-sub-section
h3 get
pre.prettyprint
code.
get(token)
:markdown
Retrieves a `Key` for a token.
.l-sub-section
h3 id
:markdown
.l-sub-section
h3 metadata
:markdown
.l-sub-section
h3 numberOfKeys
:markdown
.l-sub-section
h3 token
:markdown