After I've updated from beta-17 to beta-18 I got this error for all ion-anchor elements on template:
ERROR Error: Uncaught (in promise): Error: Template parse errors:
'ion-anchor' is not a known element:
1. If 'ion-anchor' is an Angular component, then verify that it is part of this module.
2. If 'ion-anchor' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
If I'm reverting back to beta-17 - the error is gone.
Ion-anchor is only used in the context of web components using the ion-router for angular, you should use:
<a routerLink="/path">Link</a>
@manucorporat, I'm not sure I understand your comment. Did you mean to write two sentences:
"Ion-anchor is only used in the context of web components using the ion-router. For angular, you should use: <a routerLink="/path">Link</a>"
If using Angular and <ion-router-outlet>, does the <a> tag support the router-direction attribute?
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.
@moose4lord yep, that right. And yep, <a> does support routerDirection in angular
Most helpful comment
Ion-anchor is only used in the context of web components using the ion-router for angular, you should use: