on button click redirect to another page in angular 10 code example
Example 1: how click button and redirect angular
<a class="btn" routerLink="/votes">Check votes</a>
Example 2: how click button and redirect angular
<button class="btn" (click)="goToVotes()">Check votes</button>