feat(OpaqueToken): now a const constructor
BREAKING CHANGE: now a `const` constructor
This commit is contained in:
parent
8bcfb2d465
commit
c571b2693e
|
@ -1,12 +1,16 @@
|
||||||
|
import {CONST} from 'angular2/src/facade/lang';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* @exportedAs angular2/di
|
* @exportedAs angular2/di
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@CONST()
|
||||||
export class OpaqueToken {
|
export class OpaqueToken {
|
||||||
_desc: string;
|
_desc: string;
|
||||||
|
|
||||||
constructor(desc: string) { this._desc = `Token(${desc})`; }
|
constructor(desc: string) { this._desc = 'Token(' + desc + ')'; }
|
||||||
|
|
||||||
toString(): string { return this._desc; }
|
toString(): string { return this._desc; }
|
||||||
}
|
}
|
Loading…
Reference in New Issue