queryParam alternatives

I have a list-view with router url for each list item.

I pass additional data as query-param after the router-url “/detail/?x=100”. The param x is available within object query param of the “routerTo”-object.

The target is a tab1 where I have the queryParam.

How can I transport the queryParam from one tab to another?
So when I click from tab1, I want to have the queryParam from before available in tab2.

Should I use async route and put the query param in app-param?

app.data = routeTo.query;

With this query-param is available for all other routes. Is this the right way to do such things? (passing data between tab-routes).

Are there any alternatives instead of using queryParam?

No problem. I can use app.views.[name] and put params within each view.

1 Like