cordova-plugin-datecs-printer
cordova-plugin-datecs-printer copied to clipboard
How to use in ionic 2 app?
I want to print on 58 mm small pos printer. How can i do with this plugin?
Import the plugin by
ionic cordova plugin add https://github.com/giorgiofellipe/cordova-plugin-datecs-printer.git
and in your code, do something like this
declare var window;
...
window.DatecsPrinter.listBluetoothDevices((devices) => {
this.bluetoothDevices = devices;
}, (error) => {
alert('error');
});
am having an error property DatecsPrinter does not exist on type window. How do i sort this?