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

Function init

modules/benchmarks/src/largetable/ng2/init.ts:16–39  ·  view source on GitHub ↗
(appRef: ApplicationRef)

Source from the content-addressed store, hash-verified

14import {TableComponent} from './table';
15
16export function init(appRef: ApplicationRef) {
17 let table: TableComponent;
18
19 function destroyDom() {
20 table.data = emptyTable;
21 appRef.tick();
22 }
23
24 function createDom() {
25 table.data = buildTable();
26 appRef.tick();
27 }
28
29 function noop() {}
30
31 table = appRef.components[0].instance;
32
33 initTableUtils();
34
35 bindAction('#destroyDom', destroyDom);
36 bindAction('#createDom', createDom);
37 bindAction('#updateDomProfile', profile(createDom, noop, 'update'));
38 bindAction('#createDomProfile', profile(createDom, destroyDom, 'create'));
39}

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…