MCPcopy Index your code
hub / github.com/angular/components / constructor

Method constructor

src/cdk/menu/menu-trigger.ts:99–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97 private readonly _menuAim = inject(MENU_AIM, {optional: true});
98
99 constructor() {
100 super();
101 this._setRole();
102 this._registerCloseHandler();
103 this._subscribeToMenuStackClosed();
104 this._subscribeToMouseEnter();
105 this._subscribeToMenuStackHasFocus();
106 this._setType();
107 }
108
109 /** Toggle the attached menu. */
110 toggle() {

Callers

nothing calls this directly

Calls 6

_setRoleMethod · 0.95
_registerCloseHandlerMethod · 0.95
_setTypeMethod · 0.95

Tested by

no test coverage detected