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

Function cleanData

packages/upgrade/src/common/src/util.ts:46–51  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

44 * @param node The DOM node whose data needs to be cleaned.
45 */
46export function cleanData(node: Node): void {
47 angularElement.cleanData([node]);
48 if (isParentNode(node)) {
49 angularElement.cleanData(node.querySelectorAll('*'));
50 }
51}
52
53export function controllerKey(name: string): string {
54 return '$' + name + 'Controller';

Callers 3

onDestroyMethod · 0.90
registerCleanupMethod · 0.90
destroyAppFunction · 0.85

Calls 1

isParentNodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…