Created
February 22, 2017 13:46
-
-
Save lidymonteirowm/09f4e01e821d4e55e3051e156dacf28d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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