angular/devtools/projects/ng-devtools/src
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
..
lib fix(devtools): handle case where directive metadata has undefined dependencies (#60256) 2025-03-10 09:57:25 -07:00
styles refactor(devtools): styles management (#59589) 2025-02-12 10:47:02 -08:00
BUILD.bazel refactor(devtools): bring the angular devtools directory into the root bazel workspace 2022-01-26 16:35:31 -05:00
public-api.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00