MCPcopy Create free account
hub / github.com/3Shain/Comen / constructor

Method constructor

apps/core/src/app/app.component.ts:26–38  ·  view source on GitHub ↗
(private app: ApplicationRef,
    private router: Router,
    @Inject(CSSINJECT_CONFIG_TOKEN) private config$: Subject<string>)

Source from the content-addressed store, hash-verified

24 @ViewChild('data') data: ElementRef<HTMLDivElement>;
25
26 constructor(private app: ApplicationRef,
27 private router: Router,
28 @Inject(CSSINJECT_CONFIG_TOKEN) private config$: Subject<string>) {
29 /**
30 * temporary workaround for zoneless router
31 */
32 router.events.subscribe((event) => {
33 if (event instanceof NavigationEnd) {
34 // app.tick();
35 ɵdetectChanges(this);
36 }
37 });
38 }
39
40 async ngAfterViewInit() {
41 // config in css

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected