【Ionic3】How to hide Tab bar while redirecting to another page

女爷i 2022-05-23 10:54 259阅读 0赞
There is one of ways to hide tabs bar. You need to write these in .ts file where you want to redirect to new page.
1. Import App class.
  1. import {App} from 'ionic-angular';
2. Declare App object.
  1. constructor(private app:App) { }
3. Use getRootNav().
  1. this.app.getRootNav().push(nextPage);

发表评论

表情:
评论列表 (有 0 条评论,259人围观)

还没有评论,来说两句吧...

相关阅读