Open keyboard at bottom of footer button in android and iOS application


#1

i integrate keyboard plugin for open from footer and focus field for enter value . Below i use link for plugin

And in my html page i call it as below

<ion-content #content>

Name (*)
<ion-input #txtGroupName type=“text” [(ngModel)]=“client.name”>
<ion-footer no-padding no-margin class=“custom-footer” [keyboardAttach]=“content”>
<button ion-button full no-padding no-margin (click)=“onClickAddClientContact()”>CREATE

When i run above code i get error like ERROR Error: Uncaught (in promise): Error: No provider for Keyboard!

any idea how can i solve this?


#2

You have to add the keyboard plugin in your app.module.ts file.

In the import section add :
import { Keyboard } from ‘@ionic-native/keyboard’;

and in the provider section add :
Keyboard