Creating Buttons That Act Like Links in Angular
While working on a pet project in Angular tonight, I wanted to create some buttons that act like links. Turns out, this is easy -- just apply the routerLink directive to a button and it will act like a link. Here's an example: <button class="btn btn-success" routerlink="/exercises/edit" >Edit an Exercise</button>