Ionic4项目中我们可以使用Ionic4路由导航组件ion-nav-set-root对项目进行布局。ion-nav-set-root中有ionic ion-nav-set-root 属性(Properties)等NavSetRoot
is an element that allows you to set the root of the current navigation stack.
It is the element form a calling NavController.setRoot()
component | |
---|---|
Description | Component you want to make root for the navigation stack |
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; } |