MCPcopy Index your code
hub / github.com/angular/angular / context

Method context

packages/core/src/debug/debug_node.ts:100–102  ·  view source on GitHub ↗

* An 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 `h

()

Source from the content-addressed store, hash-verified

98 * of heroes"`.
99 */
100 get context(): any {
101 return getComponent(this.nativeNode as Element) || getContext(this.nativeNode as Element);
102 }
103
104 /**
105 * The callbacks attached to the component's @Output properties and/or the element's event

Callers

nothing calls this directly

Calls 2

getComponentFunction · 0.90
getContextFunction · 0.90

Tested by

no test coverage detected