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

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.
import {App} from 'ionic-angular';
2. Declare App object.
  constructor(private app:App) { }
3. Use getRootNav().
this.app.getRootNav().push(nextPage); 

猜你喜欢

转载自blog.csdn.net/luyanc/article/details/80609588