Key

export class Key

exported from angular2/core defined in angular2/src/core/di/key.ts (line 6)

A unique object used for retrieving items from the Injector.

Keys have:

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

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

Constructor

constructor(token: Object, id: number)

Private

Members

token : Object

Not Yet Documented

id : number

Not Yet Documented

displayName : string

Returns a stringified token.