ionic ng cordova TypeError: "Cannot read property 'printer' of undefined" -


.controller('myctrl', function($scope,$cordovaprinter, ) {

$scope.print = function() {   console.log('print method here');      var page = document.getelementbyid('print_id');       if($cordovaprinter.isavailable()) {           $cordovaprinter.print(page, 'document.html', function () {           alert('printing finished or canceled')           });         } } 

give me suggestion regarding error. thanks


Comments

Popular posts from this blog

ios - Is 'init' forbidden as *part* of a variable name? -

c# - Get the Class name in a class with atribute inside a attribute method -

file - Python: AttributeError: 'str' object has no attribute 'readlines' -