Rathma
Rathma

Reputation: 1313

ng-virtual-keyboard $(...).keyboard is not a function

I want to use this library but when I apply it to my form element I get this error:

TypeError: $(...).keyboard is not a function

I have added module dependency, included js file in index.html, what is wrong?

Upvotes: 1

Views: 1440

Answers (2)

Jignesh Mistry
Jignesh Mistry

Reputation: 2479

I am also facing the same issue I am using this in my angular 6 application. I declared declare var $: any; in Ts & in ngOnInit i wrote the following code

 ngOnInit() {
    $("textarea").keyboard();
  }

Upvotes: 0

Estus Flask
Estus Flask

Reputation: 223064

ng-virtual-keyboard states that it depends on this jQuery plugin.

Upvotes: 1

Related Questions