Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49315

[Angular] What to import: RouterLink vs IonRouterLink in Ionic 8

$
0
0

Hey, I am currently working on an Angular mobile application which uses IonTabs. In the documentation of ion-router-link it is specified one should use the Angular RouterLink.

But, in the migration documentation for v8 of Ionic, it says one should import IonRouterLink when working with Ionic components.

So my question is:
When using an ion-button like

<ion-button routerLink="/login">
<ion-button [routerLink]="['login']">

what should I import? We always imported the Angular routerLink, but the docs got me worried we are messing something up. Anyone know the extact differences?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49315

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>