Hello, I have some ion-button
components in a page which I want to transition to a different page when clicked. I notice that if the buttons are set using the href="/page2"
attribute they don’t transition but if you use routerLink="/page2"
they do. So routerLink
seems right but then I notice that the ion-button docs don’t mention routerLink. Is this a valid thing to do or is there a better way of having something look like a button but work like a routerLink? Thanks
The docs are a little confusing surrounding the usage of routerLink
, I agree. But yes, using routerLink
is correct usage.