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

Method ngOnInit

packages/core/test/acceptance/after_render_hook_spec.ts:793–800  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

791 injector = inject(EnvironmentInjector);
792
793 ngOnInit() {
794 afterNextRender(
795 () => {
796 this.appRef.tick();
797 },
798 {injector: this.injector},
799 );
800 }
801 }
802
803 TestBed.configureTestingModule({

Callers

nothing calls this directly

Calls 2

afterNextRenderFunction · 0.90
tickMethod · 0.65

Tested by

no test coverage detected