Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  9] [ 4]  / answers: 1 / hits: 24941  / 7 Years ago, fri, august 11, 2017, 12:00:00

I have worked with routerLink and it works very well :



      <a routerLink=inscription class=btn btn-default>Inscription</a>
<a routerLink=login class=btn btn-default>Se connecter</a>


I am trying now to deal with routerLink inside the typescript file. Exactly, when i click on a button, i call a function inside this function i want to call routerLink how could i do it? and if is calling it will reload the page or it will work exactly the same as the routerLink above ?


More From » angular

 Answers
6

try this



<a javascript:void(0) routerLink=inscription class=btn btn-default>Inscription</a>

[#56804] Tuesday, August 8, 2017, 7 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kaitlynnb

Total Points: 402
Total Questions: 96
Total Answers: 109

Location: Trinidad and Tobago
Member since Fri, May 8, 2020
4 Years ago
kaitlynnb questions
;