Skip to content

feat: support migrating IonRouterLink and IonRouterLinkWithHref #7

Closed
@liamdebeasi

Description

@liamdebeasi

Prerequisites

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:

  1. If it detects and Ionic component that uses routerLink, routerDirection, or routerAction then import IonRouterLink.
  2. If it detects an anchor element that uses routerLink, routerDirection, or routerAction then import IonRouterLinkWithHref.

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions