MCPcopy Create free account
hub / github.com/angular/angular / ngAfterViewInit

Method ngAfterViewInit

packages/core/test/change_detection_scheduler_spec.ts:669–674  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

667 thing = 'initial';
668 cdr = inject(ChangeDetectorRef);
669 ngAfterViewInit() {
670 queueMicrotask(() => {
671 this.thing = 'new';
672 this.cdr.markForCheck();
673 });
674 }
675 }
676 const fixture = TestBed.createComponent(App);
677 await new Promise<void>((resolve) => scheduleCallbackWithRafRace(resolve));

Callers

nothing calls this directly

Calls 1

markForCheckMethod · 0.80

Tested by

no test coverage detected