メインコンテンツまでスキップ
バージョン: v8

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.

See the nav documentation for more information.

Properties​

component​

Descriptionナビゲート先のコンポーネント。 routerDirectionが "forward" または "root" である場合にのみ使用します。
Attributecomponent
TypeFunction | HTMLElement | ViewController | null | string | undefined
Defaultundefined

componentProps​

Descriptionコンポーネントにpropsとして渡したいデータ。routerDirection"が"forward"または"root"` である場合のみ使用します。
Attributecomponent-props
Typeundefined | { [key: string]: any; }
Defaultundefined

routerAnimation​

Description別ページに移動する際の遷移アニメーション。
Attributerouter-animation
Type((baseEl: any, opts?: any) => Animation) | undefined
Defaultundefined

routerDirection​

Description別ページに移動する際の遷移方向です。
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.