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

Method _navigate

src/aria/private/tabs/tabs.ts:295–300  ·  view source on GitHub ↗

Executes a navigation operation and expand the active tab if needed.

(op: () => boolean, shouldExpand: boolean = false)

Source from the content-addressed store, hash-verified

293
294 /** Executes a navigation operation and expand the active tab if needed. */
295 private _navigate(op: () => boolean, shouldExpand: boolean = false): void {
296 const success = op();
297 if (success && shouldExpand) {
298 this.open();
299 }
300 }
301
302 /** Returns the tab item associated with the given event. */
303 private _getItem(e: Event) {

Callers 1

TabListPatternClass · 0.95

Calls 1

openMethod · 0.95

Tested by

no test coverage detected