()
| 56 | } |
| 57 | |
| 58 | export 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 | } |
no test coverage detected
searching dependent graphs…