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

Method _goto

src/aria/private/toolbar/toolbar.ts:177–183  ·  view source on GitHub ↗

Navigates to the widget targeted by a pointer event.

(e: MouseEvent)

Source from the content-addressed store, hash-verified

175
176 /** Navigates to the widget targeted by a pointer event. */
177 private _goto(e: MouseEvent) {
178 const item = this.inputs.getItem(_getEventTarget(e) as Element);
179
180 if (item) {
181 this.navigationBehavior.goto(item);
182 }
183 }
184
185 constructor(readonly inputs: ToolbarInputs) {
186 this.orientation = inputs.orientation;

Callers 1

onClickMethod · 0.95

Calls 3

_getEventTargetFunction · 0.90
getItemMethod · 0.80
gotoMethod · 0.45

Tested by

no test coverage detected