MCPcopy
hub / github.com/angular/angular / ngAfterViewInit

Method ngAfterViewInit

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

Source from the content-addressed store, hash-verified

673 thing = 'initial';
674 cdr = inject(ChangeDetectorRef);
675 ngAfterViewInit() {
676 queueMicrotask(() => {
677 this.thing = 'new';
678 this.cdr.markForCheck();
679 });
680 }
681 }
682 const fixture = TestBed.createComponent(App);
683 await new Promise<void>((resolve) => scheduleCallbackWithRafRace(resolve));

Callers

nothing calls this directly

Calls 1

markForCheckMethod · 0.80

Tested by

no test coverage detected