Reputation: 1313
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
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
Reputation: 223064
ng-virtual-keyboard
states that it depends on this jQuery plugin.
Upvotes: 1