MCPcopy Create free account
hub / github.com/angular/components / constructor

Method constructor

src/material/menu/menu-item.ts:77–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 _triggersSubmenu: boolean = false;
76
77 constructor() {
78 inject(_CdkPrivateStyleLoader).load(_StructuralStylesLoader);
79 this._parentMenu?.addItem?.(this);
80 }
81
82 /** Focuses the menu item. */
83 focus(origin?: FocusOrigin, options?: FocusOptions): void {

Callers

nothing calls this directly

Calls 2

loadMethod · 0.80
addItemMethod · 0.45

Tested by

no test coverage detected