refactor(core): removed getter and changed to readonly variable (#19117)
PR Close #19117
This commit is contained in:
@ -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'; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user