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

Function assertDomElement

packages/core/src/render3/util/discovery_utils.ts:506–510  ·  view source on GitHub ↗

Asserts that a value is a DOM Element.

(value: any)

Source from the content-addressed store, hash-verified

504
505/** Asserts that a value is a DOM Element. */
506function assertDomElement(value: any) {
507 if (typeof Element !== 'undefined' && !(value instanceof Element)) {
508 throw new Error('Expecting instance of DOM Element');
509 }
510}
511
512/**
513 * A directive definition holds additional metadata using bitwise flags to indicate

Callers 3

getComponentFunction · 0.85
getContextFunction · 0.85
getListenersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…