class
deprecated
A unique object used for retrieving items from the ReflectiveInjector
.
Deprecated: No replacement
class ReflectiveKey { static numberOfKeys: number static get(token: Object): ReflectiveKey constructor(token: Object, id: number) displayName: string token: Object id: number }
Keys have:
id
.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.
Property | Description |
---|---|
static numberOfKeys: number | Read-Only |
get() |
---|
Retrieves a |
Private |
Property | Description |
---|---|
displayName: string | Read-Only |
token: Object | Declared in Constructor |
id: number | Declared in Constructor |
© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/core/ReflectiveKey