/** * Get the root DebugElement children of a component. Returns an empty * list if the current DebugElement is not a component root. * * @return {DebugElement[]} */ get componentViewChildren(): DebugElement[] { var shadowView = this._parentView.getNestedView(this._boundElementIndex); if (!isPresent(shadowView)) { // The current element is not a component. return []; } return this._getChildElements(shadowView, null); }
triggerEventHandler(eventName: string, eventObj: Event): void { this._parentView.triggerEventHandlers(eventName, eventObj, this._boundElementIndex); }