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

Function init

modules/benchmarks/src/defer/init.ts:31–52  ·  view source on GitHub ↗
(appRef: ApplicationRef)

Source from the content-addressed store, hash-verified

29}
30
31export function init(appRef: ApplicationRef) {
32 const table = appRef.components[0].instance;
33
34 function destroyDom() {
35 table.data = emptyTable;
36 appRef.tick();
37 }
38
39 function createDom() {
40 table.data = buildTable();
41 appRef.tick();
42 }
43
44 function noop() {}
45
46 initTableUtils();
47
48 bindAction('#destroyDom', destroyDom);
49 bindAction('#createDom', createDom);
50 bindAction('#createDomProfile', profile(createDom, destroyDom, 'create'));
51 bindAction('#updateDomProfile', profile(createDom, noop, 'update'));
52}

Callers

nothing calls this directly

Calls 3

initTableUtilsFunction · 0.90
bindActionFunction · 0.90
profileFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…