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

Function init

modules/benchmarks/src/tree/ng2_static/main.ts:34–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32function noop() {}
33
34function init() {
35 initTreeUtils();
36 enableProdMode();
37
38 const appModule = createAppModule();
39
40 platformBrowser()
41 .bootstrapModule(appModule)
42 .then((ref) => {
43 const injector = ref.injector;
44
45 appRef = injector.get(ApplicationRef);
46 tree = appRef.components[0].instance;
47
48 bindAction('#destroyDom', destroyDom);
49 bindAction('#createDom', createDom);
50 bindAction('#updateDomProfile', profile(createDom, noop, 'update'));
51 bindAction('#createDomProfile', profile(createDom, destroyDom, 'create'));
52 });
53}
54
55init();

Callers 1

main.tsFile · 0.70

Calls 8

initTreeUtilsFunction · 0.90
enableProdModeFunction · 0.90
createAppModuleFunction · 0.90
bindActionFunction · 0.90
profileFunction · 0.90
bootstrapModuleMethod · 0.80
thenMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…