shadow Nav is a standalone component for loading arbitrary components and pushing new components on to the stack.
Unlike Router Outlet, Nav is not tied to a particular router. This means that if we load a Nav component, and push other components to the stack, they will not affect the app's overall router. This fits use cases where you could have a modal, which needs its own sub-navigation, without making it tied to the apps URL.
NavLink is a simplified API when interacting with Nav. Developers can customize the component, pass along component properties, modify the direction of the route animation or define a custom animation when navigating.
While not required, this interface can be used in place of the CustomEvent interface for stronger typing with Ionic events emitted from this component.
interface   NavCustomEvent   extends   CustomEvent   {   target :  HTMLIonNavElement ; } Copy Description trueの場合、コンポーネントの遷移をアニメーションで表現します。Attribute animatedType booleanDefault true
Description デフォルトでは、ion-nav はmode(ios または Material Design)に応じてページ間の遷移をアニメーション化します。しかし、このプロパティは AnimationBuilder 関数を使用して、独自の遷移を作成することができます。 Attribute undefinedType ((baseEl: any, opts?: any) => Animation) | undefinedDefault undefined
Description ロードするルートNavComponent Attribute rootType Function | HTMLElement | ViewController | null | string | undefinedDefault undefined
Description ルートコンポーネントの任意のパラメータ Attribute undefinedType undefined | { [key: string]: any; }Default undefined
Description ナビコンポーネントがスワイプで戻ることができるようにする場合。 Attribute swipe-gestureType boolean | undefinedDefault undefined
Name Description ionNavDidChangeナビのコンポーネントが変更されたときに発生するイベント ionNavWillChangeナビコンポーネントが変更されたときに発生するイベント 
Description 現在のビューが戻ることができる場合は true を返します。 Signature canGoBack(view?: ViewController) => Promise<boolean>
Description アクティブビューを取得します。 Signature getActive() => Promise<ViewController | undefined>
Description 指定されたインデックスにあるビューを取得します。 Signature getByIndex(index: number) => Promise<ViewController | undefined>
Description 前のビューを取得します。 Signature getPrevious(view?: ViewController) => Promise<ViewController | undefined>
Description 指定されたインデックスのナビゲーションスタックにコンポーネントを挿入します。これは、ナビゲーションスタックの任意の位置にコンポーネントを追加するのに便利です。 Signature insert<T extends NavComponent>(insertIndex: number, component: T, componentProps?: ComponentProps<T> | null, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>
insertPages  Description 指定されたインデックスのナビゲーションスタックにコンポーネントの配列を挿入します。配列の最後のコンポーネントはビューとしてインスタンス化され、アニメーションしてアクティブビューになります。 Signature insertPages(insertIndex: number, insertComponents: NavComponent[] | NavComponentWithProps[], opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>
Description ナビゲーションスタックからコンポーネントをポップオフします。現在のコンポーネントからナビゲートして戻る。 Signature pop(opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>
Description ナビゲーションスタック内の特定のインデックスにポップします。 Signature popTo(indexOrViewCtrl: number | ViewController, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>
Description スタックのルートまで戻ってナビゲートする、それがどんなに遠くても。 Signature popToRoot(opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>
Description 新しいコンポーネントを現在のナビゲーションスタックにプッシュします。追加情報があれば、オブジェクトとして一緒に渡す。この追加情報には、NavParamsからアクセスできます。 Signature push<T extends NavComponent>(component: T, componentProps?: ComponentProps<T> | null, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>
Description 指定されたインデックスにあるコンポーネントをナビゲーションスタックから削除します。 Signature removeIndex(startIndex: number, removeCount?: number, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>
setPages  Description 現在のナビゲーションスタックのビューを設定し、最後のビューにナビゲートします。デフォルトではアニメーションは無効になっていますが、ナビゲーションコントローラーにオプションを渡すことで有効にすることができます。ナビゲーションパラメーターは、配列内の各ページに渡すこともできます。 Signature setPages(views: NavComponent[] | NavComponentWithProps[], opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>
Description 現在のナビゲーションスタックのルートをコンポーネントに設定します。 Signature setRoot<T extends NavComponent>(component: T, componentProps?: ComponentProps<T> | null, opts?: NavOptions | null, done?: TransitionDoneFn) => Promise<boolean>
No CSS shadow parts available for this component.
No CSS custom properties available for this component.
No slots available for this component.