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

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -