mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
refactor(devtools): improve formatting of injector providers token labels
Use `InjectionToken.toString` for the string representation of `InjectionToken`s for better readibility.
(cherry picked from commit 9f4c025531)
This commit is contained in:
@@ -407,7 +407,7 @@ const getDependenciesForDirective = (
|
||||
|
||||
const valueToLabel = (value: any): string => {
|
||||
if (isInjectionToken(value)) {
|
||||
return `InjectionToken(${value['_desc']})`;
|
||||
return value.toString();
|
||||
}
|
||||
|
||||
if (typeof value === 'object') {
|
||||
|
||||
Reference in New Issue
Block a user