I am able to pass data using state when opening a url in the same tab. I used the following snippet.
<a routerLink="/testPage " [state]="{ hello: 'world' }">click here</a>
But, when I try the same with target="_blank" attribute to open in a new tab. I am not able to get the data from state.
<a routerLink="/testPage " [state]="{ hello: 'world' }" target="_blank">click here</a>
I could pass the data using query params. But there is a limitation in size of query string. Is it possible to pass data using state in a new tab ?