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

Method ngAfterViewInit

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

markForCheckMethod · 0.80

Tested by

no test coverage detected