MCPcopy
hub / github.com/angular/angular / removeElements

Function removeElements

packages/platform-browser/src/dom/shared_styles_host.ts:37–41  ·  view source on GitHub ↗

* Removes all provided elements from the document. * @param elements An array of HTML Elements.

(elements: Iterable<HTMLElement>)

Source from the content-addressed store, hash-verified

35 * @param elements An array of HTML Elements.
36 */
37function removeElements(elements: Iterable<HTMLElement>): void {
38 for (const element of elements) {
39 element.remove();
40 }
41}
42
43/**
44 * Creates a `style` element with the provided inline style content.

Callers 2

removeUsageMethod · 0.85
ngOnDestroyMethod · 0.85

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…