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:
Tobias Bosch
2016-02-18 13:51:20 -08:00
parent c9a3df970b
commit b5e6319fa9
6 changed files with 11 additions and 1 deletions

View File

@ -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);
}