WuglyakBolgoink / pdfViewer

Phonegap Android Plugin PDF-Viewer
MIT License
9 stars 16 forks source link

Problem with Ionic Framework #2

Open ghost opened 9 years ago

ghost commented 9 years ago

I'm trying to use your pluggin on my cordova project but I always have this error...

With ripple emulator:

missing exec:PdfViewer.openPDF ripple.js:40 ["pdf-exemple.pdf"] ripple.js:40 TypeError: Cannot read property 'openPDF' of undefined {stack: (...), message: "Cannot >read property 'openPDF' of undefined"} ripple.js:40 TypeError: Cannot read property 'openPDF' of undefined at Object.module.exports.exec (http://localhost:4400/ripple/assets/ripple.js:40:28665) at window.openPDF (http://localhost:4400/plugins/de.cyberkatze.phonegap.plugin.PdfViewer/www/PdfViewer.js:2:13) at Scope.$scope.show (http://localhost:4400/js/controllers/estimation.controller.js:148:20) at $parseFunctionCall (http://localhost:4400/lib/ionic/js/ionic.bundle.js:20124:18) at http://localhost:4400/lib/ionic/js/ionic.bundle.js:50863:9 at Scope.$eval (http://localhost:4400/lib/ionic/js/ionic.bundle.js:22178:28) at Scope.$apply (http://localhost:4400/lib/ionic/js/ionic.bundle.js:22276:23) at HTMLElement. (http://localhost:4400/lib/ionic/js/ionic.bundle.js:50862:13) at HTMLElement.eventHandler (http://localhost:4400/lib/ionic/js/ionic.bundle.js:10823:21) at triggerMouseEvent (http://localhost:4400/lib/ionic/js/ionic.bundle.js:2811:7) ripple.js:48 PdfViewer ripple.js:48 openPDF