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

Method _navigate

src/aria/private/tabs/tabs.ts:308–313  ·  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

306
307 /** Executes a navigation operation and expand the active tab if needed. */
308 private _navigate(op: () => boolean, shouldExpand: boolean = false): void {
309 const success = op();
310 if (success && shouldExpand) {
311 this.open();
312 }
313 }
314
315 /** Returns the tab item associated with the given event. */
316 private _getItem(e: Event) {

Callers 1

TabListPatternClass · 0.95

Calls 1

openMethod · 0.95

Tested by

no test coverage detected