Skip to main content
Version: v6

ion-nav-link

Contents

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.

Properties

component

DescriptionComponent to navigate to. Only used if the routerDirection is "forward" or "root".
Attributecomponent
TypeFunction ๏ฝœ HTMLElement ๏ฝœ ViewController ๏ฝœ null ๏ฝœ string ๏ฝœ undefined
Defaultundefined

componentProps

DescriptionData you want to pass to the component as props. Only used if the "routerDirection" is "forward" or "root".
Attributeundefined
Typeundefined ๏ฝœ { [key: string]: any; }
Defaultundefined

routerAnimation

DescriptionThe transition animation when navigating to another page.
Attributeundefined
Type((baseEl: any, opts?: any) => Animation) ๏ฝœ undefined
Defaultundefined

routerDirection

DescriptionThe transition direction when navigating to another page.
Attributerouter-direction
Type"back" ๏ฝœ "forward" ๏ฝœ "root"
Default'forward'

Events

No events available for this component.

Methods

No public methods available for this component.

CSS Shadow Parts

No CSS shadow parts available for this component.

CSS Custom Properties

No CSS custom properties available for this component.

Slots

No slots available for this component.