Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/angular/components
/ ngAfterViewInit
Method
ngAfterViewInit
docs/scenes/src/app/scenes/menu/menu-scene.ts:24–26 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
22
readonly trigger = viewChild.required<MatMenuTrigger>(
'menuTrigger'
);
23
24
ngAfterViewInit() {
25
this.trigger().openMenu();
26
}
27
}
Callers
nothing calls this directly
Calls
2
openMenu
Method · 0.45
trigger
Method · 0.45
Tested by
no test coverage detected