MCPcopy
hub / github.com/angular/angular / ngOnInit

Method ngOnInit

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

Source from the content-addressed store, hash-verified

872 injector = inject(EnvironmentInjector);
873
874 ngOnInit() {
875 afterNextRender(
876 () => {
877 this.appRef.tick();
878 },
879 {injector: this.injector},
880 );
881 }
882 }
883
884 TestBed.configureTestingModule({

Callers

nothing calls this directly

Calls 2

afterNextRenderFunction · 0.90
tickMethod · 0.65

Tested by

no test coverage detected