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

Method peek

src/cdk/menu/menu-stack.ts:188–190  ·  view source on GitHub ↗

Get the top most element on the stack.

()

Source from the content-addressed store, hash-verified

186
187 /** Get the top most element on the stack. */
188 peek(): MenuStackItem | undefined {
189 return this._elements[this._elements.length - 1];
190 }
191
192 /** Whether the menu stack is associated with an inline menu. */
193 hasInlineMenu() {

Callers 3

closeSubMenuOfMethod · 0.95
_closeSiblingTriggersMethod · 0.45
menu-stack.spec.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected