Commit 7f85d18
fix(devtools): handle case where directive metadata has
This fixes a bug introduced by [angular#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 angular#60256undefined dependencies (angular#60256)1 parent 1eedfce commit 7f85d18
File tree
1 file changed
+2
-1
lines changed- devtools/projects/ng-devtools/src/lib/devtools-tabs/directive-explorer/property-tab/property-view
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
0 commit comments