填写这份《一分钟调查》,帮我们(开发组)做得更好!去填写Home

ReflectiveKey

A unique object used for retrieving items from the ReflectiveInjector.

查看"说明"...

已弃用: 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:

  • a system-wide unique id.
  • a token.

Key is used internally by ReflectiveInjectorbecause its system-wide unique id allows the injector to store created objects in a more efficient way.

Key should not be created directly. ReflectiveInjectorcreates keys automatically when resolving providers.

静态属性

属性说明
static numberOfKeys: number只读

静态方法

Retrieves a Key for a token.

static get(token: Object): ReflectiveKey
      
      static get(token: Object): ReflectiveKey
    
参数
token Object
返回值

ReflectiveKey

构造函数

Private

constructor(token: Object, id: number)
      
      constructor(token: Object, id: number)
    
参数
token Object
id number

属性

属性说明
displayName: string只读
token: ObjectDeclared in constructor.
id: numberDeclared in constructor.