Closed
Description
Prerequisites
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Describe the Feature Request
Using features such as routerLink
and routerDirection
with @ionic/angular
requires the use of IonRouterLink
and IonRouterLinkWithHref
directives. In the lazy loaded build, this is registered for developers globally. However, developers using Ionic Standalone will need to import them.
Describe the Use Case
This would reduce the amount of manual work required to migrate to Ionic standalone components.
Describe Preferred Solution
Ideally the migration tool would do the following when checking the component template:
- If it detects and Ionic component that uses
routerLink
,routerDirection
, orrouterAction
then importIonRouterLink
. - If it detects an anchor element that uses
routerLink
,routerDirection
, orrouterAction
then importIonRouterLinkWithHref
.
Describe Alternatives
No response
Related Code
No response
Additional Information
No response
Metadata
Metadata
Assignees
Labels
No labels