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? -

javascript - Why Selenium can't find an element that is graphically visible -

qt - Microsoft FTP Service 451 The parameter is incorrect -