srehanuddin / Cordova-Plugin-Bluetooth-Printer

A cordova plugin for bluetooth printer for android platform
103 stars 116 forks source link

Error: Unknown provider: BTPrinterProvider <- BTPrinter <- PrintCtrl #36

Open gwiji opened 7 years ago

gwiji commented 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!