Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/angular/angular
/ ngAfterViewInit
Method
ngAfterViewInit
packages/core/test/render3/reactivity_spec.ts:253–260 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
251
injector = inject(Injector);
252
253
ngAfterViewInit(): void {
254
effect(
255
() => {
256
didRun = true;
257
},
258
{injector: this.injector},
259
);
260
}
261
}
262
263
const
fixture = TestBed.createComponent(Cmp);
Callers
nothing calls this directly
Calls
1
effect
Function · 0.90
Tested by
no test coverage detected