Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
call a function whenever routerlink is clicke angular
Peter Shank
Programming language:
Javascript
2021-07-15 19:43:00
0
Q:
call a function whenever routerlink is clicke angular
Frank
Code:
Javascript
2021-06-21 14:26:26
<a class="nav-link" [routerLink]="['/home']" (click)="doSomeLogic()">Home</a>
2
Tags
click
function
angular
call
link
when
Related
how click button and redirect angular
react why onclick property function trigger without click
angular [routerlink]
anchor click event angular refresh page
click on button submitting the form in angular
angular detect router change
can I pass function as prop on route change
button click event listener angular
angular right click on link
routerlink for button in angular 7
add a route to a buttoin in angular
push a new route only triggers URL change but not location change
angular router navigate base href
how to add changes every time you route navigate to page in angular
javascript setattribute onclick function with parameters
angular router return back
New to Communities?
Join the community