ion-nav-link
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 | |
---|---|
Description | Component to navigate to. Only used if the
|
Attribute | component |
Type | Function | HTMLElement | ViewController | null | string | undefined |
componentProps | |
Description | Data you want to pass to the component as props. Only used if the |
Type | undefined | { [key: string]: any; } |
routerDirection | |
Description | The transition direction when navigating to another page. |
Attribute | router-direction |
Type | "back" | "forward" | "root" |
Default | 'forward' |