Open gwiji opened 7 years ago
I have been trying to use this plugin for some time now with little success.
Here is my controller
angular.module('starter.controllers', ['ionic', 'starter.controllers','ngCordova'])
.controller('PrintCtrl', function($scope, BTPrinter) {
BTPrinter.list(function(data){ console.log("Success"); console.log(data); //list of printer in data array },function(err){ console.log("Error"); console.log(err); })
})
I keep on getting this error message
Unknown provider: BTPrinterProvider <- BTPrinter <- PrintCtrl
Help!
I have been trying to use this plugin for some time now with little success.
Here is my controller
angular.module('starter.controllers', ['ionic', 'starter.controllers','ngCordova'])
.controller('PrintCtrl', function($scope, BTPrinter) {
BTPrinter.list(function(data){ console.log("Success"); console.log(data); //list of printer in data array },function(err){ console.log("Error"); console.log(err); })
})
I keep on getting this error message
Unknown provider: BTPrinterProvider <- BTPrinter <- PrintCtrl
Help!