how to give routerlink to button in angular 6 code example Example: routerlink for button in angular 7 <a routerLink="/">Go To Home</a>