Skip to content

Instantly share code, notes, and snippets.

@cryptocoinserver
cryptocoinserver / keyboard-attach.directive.ts
Created January 24, 2017 16:47 — forked from Manduro/keyboard-attach.directive.ts
Ionic 2 Keyboard Attach Directive
import { Directive, ElementRef, Input } from '@angular/core';
import { Content, Platform } from 'ionic-angular';
import { Keyboard } from 'ionic-native';
/**
* @name KeyboardAttachDirective
* @description
* The `keyboardAttach` directive will cause an element to float above the
* keyboard when the keyboard shows. Currently only supports the `ion-footer` element.