feat(core): add more debug APIs to inspect the application form a browser
Adds `window.getAllAngularRootElements()` Adds `ng.coreTokens.ApplicationRef` Adds `ng.coreTokens.Ngzone` Closes #7045 Closes #7161
This commit is contained in:
@ -118,6 +118,8 @@ export class TestabilityRegistry {
|
||||
|
||||
getAllTestabilities(): Testability[] { return MapWrapper.values(this._applications); }
|
||||
|
||||
getAllRootElements(): any[] { return MapWrapper.keys(this._applications); }
|
||||
|
||||
findTestabilityInTree(elem: Node, findInAncestors: boolean = true): Testability {
|
||||
return _testabilityGetter.findTestabilityInTree(this, elem, findInAncestors);
|
||||
}
|
||||
|
Reference in New Issue
Block a user