Skip to content

docs(angular): add tip for usage of IonRouterLink within navigation #3735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/angular/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ Developers can use the existing syntax for standalone component routing from Ang
export class AppRoutingModule {}
```

:::tip
If you are using `routerLink`, `routerDirection`, or `routerAction` be sure to also import the `IonRouterLink` directive for Ionic components or the `IonRouterLinkWithHref` directive for `<a>` elements. An example of this is available in the [Ionic Angular Build Options docs](./build-options.md#migrating-from-modules-to-standalone).
:::

To get started with standalone components [visit Angular's official docs](https://angular.io/guide/standalone-components).

## Live Example
Expand Down