ion-nav-set-root
Ionic4项目中我们可以使用Ionic4路由导航组件ion-nav-set-root对项目进行布局。 ion-nav-set-root官方文档地址:https://ionicframework.com/docs/api/nav-set-rootNavSetRoot
is an element that allows you to set the root of the current navigation stack.
It is the element form a calling NavController.setRoot()
ion-nav-set-root 属性(Properties)
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; } |