menu
menuAPI
class DebugElement extends DebugNode { constructor(nativeNode: Element): DebugElement; readonly nativeElement: any; readonly name: string; readonly properties: { [key: string]: any; }; readonly attributes: { [key: string]: string | null; }; readonly styles: { [key: string]: string | null; }; readonly classes: { [key: string]: boolean; }; readonly childNodes: DebugNode[]; readonly children: DebugElement[]; query(predicate: Predicate<DebugElement>): DebugElement; queryAll(predicate: Predicate<DebugElement>): DebugElement[]; queryAllNodes(predicate: Predicate<DebugNode>): DebugNode[]; triggerEventHandler(eventName: string, eventObj?: any): void; readonly override nativeNode: any; override readonly parent: DebugElement | null; override readonly injector: Injector; override readonly componentInstance: any; override readonly context: any; override readonly listeners: DebugEventListener[]; override readonly references: { [key: string]: any; }; override readonly providerTokens: any[];}
DebugElementElementDebugElementanyThe underlying DOM element at the root of the component.
stringThe element tag name, if it is an element.
{ [key: string]: any; }Gets a map of property names to property values for an element.
This map includes:
[id]="id")host: { '[id]': "id" })It does not include:
[myCustomInput]="value")[attr.role]="menu"){ [key: string]: string | null; }A map of attribute names to attribute values for an element.
{ [key: string]: string | null; }The inline styles of the DOM element.
{ [key: string]: boolean; }A map containing the class names on the element as keys.
This map is derived from the className property of the DOM element.
Note: The values of this object will always be true. The class key will not appear in the KV
object if it does not exist on the element.
DebugNode[]The childNodes of the DOM element as a DebugNode array.
DebugElement[]The immediate DebugElement children. Walk the tree by descending through children.
voidTriggers the event by its name if there is a corresponding listener in the element's
listeners collection.
If the event lacks a listener or there's some other problem, consider
calling nativeElement.dispatchEvent(eventObject).
stringThe name of the event to trigger
anyThe event object expected by the handler
voidanyThe underlying DOM node.
DebugElement | nullThe DebugElement parent. Will be null if this is the root element.
InjectorThe host dependency injector. For example, the root element's component instance injector.
anyThe element's own component instance, if it has one.
anyAn object that provides parent context for this element. Often an ancestor component instance that governs this element.
When an element is repeated within *ngFor, the context is an NgForOf whose $implicit
property is the value of the row instance value. For example, the hero in *ngFor="let hero of heroes".
DebugEventListener[]The callbacks attached to the component's @Output properties and/or the element's event properties.
{ [key: string]: any; }Dictionary of objects associated with template local variables (e.g. #foo), keyed by the local variable name.
any[]This component's injector lookup tokens. Includes the component itself plus the tokens that the component lists in its providers metadata.