MCPcopy
hub / github.com/angular/components / constructor

Method constructor

src/components-examples/aria/menu/simple-menu.ts:16–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 menu = inject(Menu);
15
16 constructor() {
17 afterRenderEffect(() => {
18 this.menu.visible() ? this.menu.element.showPopover() : this.menu.element.hidePopover();
19 });
20 }
21
22 onBeforeToggle() {
23 const parent = this.menu.parent() as MenuItem<string>;

Callers

nothing calls this directly

Calls 1

visibleMethod · 0.80

Tested by

no test coverage detected