Skip to content

Instantly share code, notes, and snippets.

@lidymonteirowm
Created February 22, 2017 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lidymonteirowm/09f4e01e821d4e55e3051e156dacf28d to your computer and use it in GitHub Desktop.
Save lidymonteirowm/09f4e01e821d4e55e3051e156dacf28d to your computer and use it in GitHub Desktop.
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
tabBarElement: any;
constructor(public navCtrl: NavController) {
if (document.querySelector('.tabbar')) {
this.tabBarElement = document.querySelector('.tabbar.show-tabbar');
}
}
ionViewWillEnter() {
if (this.tabBarElement) {
this.tabBarElement.style.display = 'none';
}
}
ionViewWillLeave() {
if (this.tabBarElement) {
this.tabBarElement.style.display = 'flex';
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment