I’ve added “cordova-plugin-contacts” to my Ionic2 app using:
$ ionic plugin add cordova-plugin-contacts
but I can not figure out how to include scripts to make it working.
Am I supposed to copy manually JS to my WWW folder? Or it should be automatically complied by webpack build process?
Any examples? There are quite a lot of scripts and ideally it should be linked from the plugin directory. Any help would be highly appreciated.
$ ls -l
total 80
-rw-r--r-- 1 astec wheel 5650 Nov 18 01:45 Contact.js
-rw-r--r-- 1 astec wheel 1569 Nov 18 01:45 ContactAddress.js
-rw-r--r-- 1 astec wheel 1338 Nov 18 01:45 ContactError.js
-rw-r--r-- 1 astec wheel 1279 Nov 18 01:45 ContactField.js
-rw-r--r-- 1 astec wheel 1958 Nov 18 01:45 ContactFieldType.js
-rw-r--r-- 1 astec wheel 1297 Nov 18 01:45 ContactFindOptions.js
-rw-r--r-- 1 astec wheel 1359 Nov 18 01:45 ContactName.js
-rw-r--r-- 1 astec wheel 1251 Nov 18 01:45 ContactOrganization.js
-rw-r--r-- 1 astec wheel 3560 Nov 18 01:45 contacts.js
drwxr-xr-x 4 astec wheel 136 Nov 18 01:45 ios