refactor(core): removed getter and changed to readonly variable (#19117)

PR Close #19117
This commit is contained in:
Yuan Gao
2017-09-08 18:06:33 -07:00
committed by Igor Minar
parent 549f2254b4
commit b14c2d1568
9 changed files with 62 additions and 77 deletions

View File

@ -29,10 +29,10 @@
* @stable
*/
export class InjectionToken<T> {
/** @internal */
readonly ngMetadataName = 'InjectionToken';
constructor(protected _desc: string) {}
toString(): string { return `InjectionToken ${this._desc}`; }
/** @internal */
get ngMetadataName() { return 'InjectionToken'; }
}