| title | ion-nav-link |
|---|
import Props from '@ionic-internal/component-api/v6/nav-link/props.md'; import Events from '@ionic-internal/component-api/v6/nav-link/events.md'; import Methods from '@ionic-internal/component-api/v6/nav-link/methods.md'; import Parts from '@ionic-internal/component-api/v6/nav-link/parts.md'; import CustomProps from '@ionic-internal/component-api/v6/nav-link/custom-props.mdx'; import Slots from '@ionic-internal/component-api/v6/nav-link/slots.md';
<title>ion-nav-link: The Element for Navigation to a Specified Component</title>import EncapsulationPill from '@components/page/api/EncapsulationPill';
A navigation link is used to navigate to a specified component. The component can be navigated to by going forward, back or as a root component.
It is the element form of calling the push(), pop(), and setRoot() methods on the navigation controller.
See the nav documentation for more information.