angular/devtools/projects
Doug Parker 7f85d184b0 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:25 -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:25 -07:00
ng-devtools-backend refactor(devtools): Make every ng function optional in the typings (#60208) 2025-03-10 09:24:12 -07:00
protocol feat(devtools): add the onpush label for marked onpush components in the components tree view (#60059) 2025-02-26 11:20:22 -05: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