Class Overview
class ReflectiveKey {
staticget
(token: Object) : ReflectiveKey
staticnumberOfKeys
: number
constructor
(token: Object, id: number)
}
Class Description
A unique object used for retrieving items from the ReflectiveInjector
.
Keys have:
- a system-wide unique
id
. - a
token
.
Key
is used internally by ReflectiveInjector
because its system-wide unique id
allows
the
injector to store created objects in a more efficient way.
Key
should not be created directly. ReflectiveInjector
creates keys automatically when
resolving
providers.
exported from @angular/core/index, defined in @angular/core/src/di/reflective_key.ts