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

Method constructor

src/cdk/menu/menu-item.ts:104–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 protected readonly destroyed = new Subject<void>();
103
104 constructor() {
105 this._setupMouseEnter();
106 this._setType();
107
108 if (this._isStandaloneItem()) {
109 this._tabindex = 0;
110 }
111 }
112
113 ngOnDestroy() {
114 this._cleanupMouseEnter?.();

Callers

nothing calls this directly

Calls 3

_setupMouseEnterMethod · 0.95
_setTypeMethod · 0.95
_isStandaloneItemMethod · 0.95

Tested by

no test coverage detected