I want to hide footer in Ionic2 when Keyboard Appears, i searched all the forum but didn't find the correct Solution.
Here is my Footer -
<ion-footer>
<div class="footer1" >
<p>You don't have account? <span [navPush]="pushPage"> Register here</span></p>
</div>
</ion-footer>
@Und3rTow's answer is quite right, thank you. But a boolean is not really needed:
keyboardCheck() {
return !this.keyboard.isOpen();
}
HTML:
<ion-footer *ngIf="keyboardCheck()">
...
</ion-footer>
You can even avoid that function too:
<ion-footer *ngIf="!keyboard.isOpen()">
...
</ion-footer>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With