Ionic-framework: Ionic 4 RC-0 - ion-anchor is showing error

Created on 26 Dec 2018  路  10Comments  路  Source: ionic-team/ionic-framework

Bug Report

Ionic version:


[x] 4.0.0.rc.0

Current behavior:

ion-anchor tag is showing parsing error in ionic v4 release candidate. But, When I import CUSTOM_ELEMENTS_SCHEMA in my signin module, it is working fine.

Expected behavior:

ion-anchor tag is work without adding any CUSTOM_ELEMENTS_SCHEMA in my signin module

Steps to reproduce:

Implemented ion-anchor tag in my signin page html. Below i have added my code.

Related code:

<ion-anchor color="primary" routerDirection="forward" href="/forget">Forget your password?</ion-anchor>

Error
image

Other information:

Ionic info:

image

angular bug

All 10 comments

<ion-anchor> is not exported in @ionic/angular since a simple <a> might have the same effect, what's your use case?

But Before release candidate version it is working fine.

I also use ion-anchor, and my intent is to use Ionic's elements when available than using default HTML element.

But for now (because of this issue), i will use <a> instead

This also happens for 4.0 that was just released.

The doc isn't clear about it but it seems ion-anchor is redundant and the same properties can be applied to an a tag.

Had the same issue, i dont think its provided by Ionic anymore. Just use a regular a tag.
Its confusing because it still exists in the documentation.

had the same issue, Any updates ?

If it's no longer a support element, it should be removed from the docs.

@MarkJAmes1217 does not make sense in angula land. it's only useful for ionic/core. In angular you can just use a normal anchor:

<a [routerLink]="/path">Link</a>

We will update the docs, but it's still a supported component, it is just not available in @ionic/angular

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SebastianGiro picture SebastianGiro  路  3Comments

masimplo picture masimplo  路  3Comments

GeorgeAnanthSoosai picture GeorgeAnanthSoosai  路  3Comments

fdnhkj picture fdnhkj  路  3Comments

manucorporat picture manucorporat  路  3Comments