'ion-anchor' is not a known element:


I’m using Ionic 4.

I have defined an anchor tag like

<ion-anchor href="/forgot" routerDirection="forward">
    Forgot Password?

But this is giving an error

'ion-anchor' is not a known element:

The documentation describes it


I also have same issue. Is there anyone lucky!


Same issue here.

'ion-anchor' is not a known element

I want to call a function from an anchor rather than a button and assumed this was the place/method to do that. Is there another/better way?


Option 1: <ion-anchor href="myFunction()">Clear Data</ion-anchor>