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

Function prepare

modules/benchmarks/src/hydration/init.ts:61–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 }
60
61 function prepare() {
62 destroyDom();
63 data = buildTable();
64
65 if (insertSsrContent) {
66 // Prepare DOM structure, similar to what SSR would produce.
67 const hostElement = document.getElementById('table')!;
68 hostElement.setAttribute('ngh', '0');
69 hostElement.textContent = ''; // clear existing DOM contents
70 hostElement.appendChild(createTableDom(data));
71 }
72 }
73
74 function noop() {}
75

Callers

nothing calls this directly

Calls 5

buildTableFunction · 0.90
createTableDomFunction · 0.85
destroyDomFunction · 0.70
setAttributeMethod · 0.65
appendChildMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…