Answers for "click routerlink"

3

call a function whenever routerlink is clicke angular

<a class="nav-link" [routerLink]="['/home']" (click)="doSomeLogic()">Home</a>
Posted by: Guest on July-09-2020
3

router link @click

<router-link :to="{name: 'landing'}" tag="li" exact v-on:click.native="close()">Home</router-link>
<!-- Use the .native modifier -->
Posted by: Guest on March-27-2020

Browse Popular Code Answers by Language