Trying to use Angular Virtual Keyboard module in my Angular 2 app

247 views
Skip to first unread message

Vladimir Makhnovskiy

unread,
Oct 25, 2017, 3:41:15 PM10/25/17
to Angular and AngularJS discussion

I need to add virtual keyboard to some pages in the Angular 2 app I am currently working on. I am using angular quickstart directory from the official Angular tutorial as the starting point for my app, so my app is structured the way the quickstart app is structured.

I am trying to follow the instructions on this page:


Under "Usage" it says:

"1) Import the angular-virtual-keyboard.min.js script in your page." - what does that mean? Should I include this element in my index.html?

<script src="node_modules/systemjs/angular-virtual-keyboard/release/angular-virtual-keyboard.min.js"></script>

"2) Include the module angular-virtual-keyboard in your angular app" - how exactly am I supposed to do that? Should I add something to my app.module.ts? 

Sander Elias

unread,
Oct 27, 2017, 1:38:58 AM10/27/17
to Angular and AngularJS discussion
Hi Vladimir,

The virtual keyboard you found is an AngularJS (version 1.x) plugin. I would not recommend trying to use this in an Angular (2+) application.

Regards
Sander

Vladimir Makhnovskiy

unread,
Oct 27, 2017, 9:54:07 AM10/27/17
to Angular and AngularJS discussion
Oh..... Not even Angular 2 plugin. Dummy me...

I ended up using Jquery UI virtual keyboard plugin. Works good.
Reply all
Reply to author
Forward
0 new messages