Skip to content

Commit

Permalink
getCurrentRoute in web component client api (#4077)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardl authored Dec 18, 2024
1 parent 5e99b65 commit 568c963
Show file tree
Hide file tree
Showing 3 changed files with 1,537 additions and 1,503 deletions.
9 changes: 9 additions & 0 deletions client/luigi-element.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,15 @@ export declare interface LinkManager {
* @returns {boolean} indicating if there is a preserved view you can return to
*/
hasBack: () => boolean;

/**
* Gets the luigi route associated with the current micro frontend.
* @returns {promise} a promise which resolves to a String value specifying the current luigi route
* @since NEXTRELEASE
* @example
* LuigiClient.linkManager().getCurrentRoute();
*/
getCurrentRoute: () => Promise<string>;
}

export declare class LuigiElement extends HTMLElement {
Expand Down
Loading

0 comments on commit 568c963

Please sign in to comment.