title: How to pass data using state when opening a url in a new tab in Angular 8
body: <p>I am able to pass data using state when opening a url in the same tab. I used the following snippet.</p>
  <pre><code>&lt;a routerLink=&quot;/testPage &quot; [state]=&quot;{ hello: 'world' }&quot;&gt;click here&lt;/a&gt;
  </code></pre>
  <p>But, when I try the same with target=&quot;_blank&quot; attribute to open in a new tab. I am not able to get the data from state.</p>
  <pre><code>&lt;a routerLink=&quot;/testPage &quot; [state]=&quot;{ hello: 'world' }&quot; target=&quot;_blank&quot;&gt;click here&lt;/a&gt;
  </code></pre>
  <p>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 ?</p>