Issue
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 ?
Solution
try this
<a javascript:void(0) routerLink="inscription" class="btn btn-default">Inscription</a>
Answered By - Jorawar Singh
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.