how to add [routerLink] from component?
<p>My html call to this component</p>

<pre><code>   &lt;navbar [title]="'Recorridos'"
            [hasNavbarItems]="true"
            [itemsJsonFileName]="'recorrido-list-navbar-items.json'"
            (btnActionClicked)="onBtnActionClicked($event)"
            (btnFilterClicked)="onBtnFilterClicked($event)"&gt;
    &lt;/navbar&gt;
</code></pre>

<p>this is a dynamic component then in onBtnActionClicked($event) needs to redirect like </p>

<pre><code>&lt;a [routerLink]="['/parent/detail', detail.detailId]"&gt;{{detail.detailId}}&lt;/a&gt;
</code></pre>

<p>but as you see this can't be added from html then in my component 
I could call the button click 
doing</p>

<pre><code>onBtnActionClickedV(event) {

        }
</code></pre>

<p>in that function how can I redirect like routerLink does??</p>