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

Function createAppModule

modules/benchmarks/src/tree/ng2_static/tree.ts:58–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58export function createAppModule(): any {
59 const components: any[] = [RootTreeComponent];
60 for (let i = 0; i <= getMaxDepth(); i++) {
61 components.push(createTreeComponent(i, i === getMaxDepth()));
62 }
63
64 @NgModule({
65 imports: [BrowserModule],
66 bootstrap: [RootTreeComponent],
67 declarations: [components],
68 providers: [provideZoneChangeDetection()],
69 jit: true,
70 })
71 class AppModule {
72 constructor(sanitizer: DomSanitizer) {
73 trustedEmptyColor = sanitizer.bypassSecurityTrustStyle('');
74 trustedGreyColor = sanitizer.bypassSecurityTrustStyle('grey');
75 }
76 }
77
78 return AppModule;
79}

Callers 1

initFunction · 0.90

Calls 3

getMaxDepthFunction · 0.90
createTreeComponentFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…