Skip to content

Commit 09e86cb

Browse files
docs(angular): add tip for usage of IonRouterLink within navigation (#3735)
Co-authored-by: Maria Hutt <[email protected]>
1 parent 3371e0e commit 09e86cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/angular/navigation.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ Developers can use the existing syntax for standalone component routing from Ang
193193
export class AppRoutingModule {}
194194
```
195195

196+
:::tip
197+
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).
198+
:::
199+
196200
To get started with standalone components [visit Angular's official docs](https://angular.io/guide/standalone-components).
197201

198202
## Live Example

0 commit comments

Comments
 (0)