angular/devtools/projects
Doug Parker ea8008d95e fix(devtools): handle case where directive metadata has undefined dependencies (#60256)
This fixes a bug introduced by [#60206](https://github.com/angular/angular/pull/60206/files#diff-c07b9ecd59f6e0ed636ac9672b9644178d9a999f04bc8b8198b13e86589dfa5b). Previously `DirectiveMetadata.prototype.dependencies` was always set, but in that PR `dependencies` is only set if an `Injector` is found (which only happens when `ng.getInjector` is *not* defined). This causes an error when evaluating `dependencies.length` in the template.

Fix is just to check for existance before calling `length`.

PR Close #60256
2025-03-10 09:57:26 -07:00
..
demo-no-zone refactor(devtools): migrate devtools to prettier formatting (#58624) 2024-11-19 16:31:24 -08:00
demo-standalone refactor(devtools): styles management (#59589) 2025-02-12 10:47:02 -08:00
ng-devtools fix(devtools): handle case where directive metadata has undefined dependencies (#60256) 2025-03-10 09:57:26 -07:00
ng-devtools-backend refactor(devtools): ignore getInjector when it is not supported (#60206) 2025-03-05 12:05:46 -08:00
protocol refactor: remove unnecessary TSLint rule flags (#59365) 2025-01-07 16:06:21 +00:00
shared-utils refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
shell-browser release: bump Angular DevTools version to 1.0.25 (#60235) 2025-03-06 10:32:02 -08:00