MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / getRouteId

Method getRouteId

core/src/components/nav/nav.tsx:436–446  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

434 */
435 @Method()
436 async getRouteId(): Promise<RouteID | undefined> {
437 const active = this.getActiveSync();
438 if (active) {
439 return {
440 id: active.element!.tagName,
441 params: active.params,
442 element: active.element,
443 };
444 }
445 return undefined;
446 }
447
448 /**
449 * Get the active view.

Callers

nothing calls this directly

Calls 1

getActiveSyncMethod · 0.95

Tested by

no test coverage detected