Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 1 addition & 15 deletions docs/api/router-link.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
---
title: "ion-router-link"
hide_table_of_contents: true
demoUrl: "/docs/demos/api/router-link/index.html"
demoSourceUrl: "https://github.com/ionic-team/ionic-docs/tree/main/static/demos/api/router-link/index.html"
---
import TOCInline from '@theme/TOCInline';

import Props from '@ionic-internal/component-api/v7/router-link/props.md';
import Events from '@ionic-internal/component-api/v7/router-link/events.md';
Expand All @@ -22,23 +18,13 @@ import EncapsulationPill from '@components/page/api/EncapsulationPill';

<EncapsulationPill type="shadow" />

<h2 className="table-of-contents__title">Contents</h2>

<TOCInline
toc={toc}
maxHeadingLevel={2}
/>



The router link component is used for navigating to a specified link. Similar to the browser's anchor tag, it can accept a href for the location, and a direction for the transition animation.

:::note
Note: this component should only be used with vanilla and Stencil JavaScript projects. For Angular projects, use an `<a>` and `routerLink` with the Angular router.
:::



See the [Router](./router) documentation for more information.

## Properties
<Props />
Expand Down
11 changes: 2 additions & 9 deletions versioned_docs/version-v6/api/router-link.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
---
title: 'ion-router-link'
hide_table_of_contents: true
demoUrl: '/docs/demos/api/router-link/index.html'
demoSourceUrl: 'https://github.com/ionic-team/ionic-docs/tree/main/static/demos/api/router-link/index.html'
---

import TOCInline from '@theme/TOCInline';

import Props from '@ionic-internal/component-api/v6/router-link/props.md';
import Events from '@ionic-internal/component-api/v6/router-link/events.md';
import Methods from '@ionic-internal/component-api/v6/router-link/methods.md';
Expand All @@ -26,16 +21,14 @@ import EncapsulationPill from '@components/page/api/EncapsulationPill';

<EncapsulationPill type="shadow" />

<h2 className="table-of-contents__title">Contents</h2>

<TOCInline toc={toc} maxHeadingLevel={2} />

The router link component is used for navigating to a specified link. Similar to the browser's anchor tag, it can accept a href for the location, and a direction for the transition animation.

:::note
Note: this component should only be used with vanilla and Stencil JavaScript projects. For Angular projects, use an `<a>` and `routerLink` with the Angular router.
:::

See the [Router](./router) documentation for more information.

## Properties

<Props />
Expand Down