Flutter教程

ion-nav-push

概要(CONTENTS)

Ionic4项目中我们可以使用Ionic4路由导航组件ion-nav-push对项目进行布局。

ion-nav-push官方文档地址:https://ionicframework.com/docs/api/nav-push

NavPush is a component used to navigate to the specified component. It is the element form of NavController.push()

ion-nav-push 属性(Properties)

component

Description

Component to navigate to

Attribute component
Type Function | HTMLElement | ViewController | null | string | undefined

componentProps

Description

Data you want to pass to the component as props

Type undefined | { [key: string]: any; }