To keep the state across multiple pages, you can
- Store it in a local storage and access it via
globalThis.localStorage
in dynamic expression as suggested in the other post - or You can pass it in the query params while navigating from one page to another page.
Thanks