JustPaste.it

JS-

import { Component } from '@angular/core';
import { NavController,AlertController, Keyboard,Platform } from 'ionic-angular';
import { RegisterPage } from '../register/register';
import { DashboardPage } from '../dashboard/dashboard';
@Component({
selector: 'page-home',
templateUrl: 'home.html'
})
export class HomePage {
pushPage;
showFooter: boolean = true;
constructor(public navCtrl: NavController,private alertCtrl: AlertController,public keyboard: Keyboard, public platform: Platform) {
this.pushPage = RegisterPage;
}
keyboardCheck() {
console.log('The keyboard is open1:', this.keyboard.isOpen());
alert('The Keyboard Open in ALert1');
if (this.keyboard.isOpen()) {
// You logic goes here
this.showFooter = false;
console.log('The keyboard is open:', this.keyboard.isOpen());
alert('The Keyboard Open in ALert');
}
}
}