<p dir="auto">[Router 3.0.0-beta.2] "data" parameter exists in Route and we can pass static data through route definition, but unable to pass dynamic data through RouteLink or navigate method of Router.</p>
<p dir="auto">Is it possible to navigate to an URL and give a json object to it?<br>
As:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// exactly like @RouteConfig
this.router.navigateByUrl('/path', { data: { entity: 'entity' } })"><pre class="notranslate"><span class="pl-c">// exactly like <span class="pl-k">@RouteConfig</span></span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">router</span><span class="pl-kos">.</span><span class="pl-en">navigateByUrl</span><span class="pl-kos">(</span><span class="pl-s">'/path'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">data</span>: <span class="pl-kos">{</span> <span class="pl-c1">entity</span>: <span class="pl-s">'entity'</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">Best regards,<br>
Tiago Braga</p>