Skip to content

Controls doesn't work when loading two different pdfs #139

Description

@korteee

I got two controllers in two different html files each of one changes $scope.pdfUrl.
When I load them for first time I got the wanted result (both of them load the correct pdf). But when I have once loaded both of them when I go back to the firstly loaded and try to use its controls I got the following error:

Error: this.messageHandler is null
WorkerTransport_getPage@http://localhost:8100/lib/pdfjs-dist/build/pdf.js:9970:11
PDFDocumentProxy_getPage@http://localhost:8100/lib/pdfjs-dist/build/pdf.js:8883:14
.link/scope.renderPage@http://localhost:8100/lib/angular-pdf/dist/angular-pdf.js:67:11
.link/<@http://localhost:8100/lib/angular-pdf/dist/angular-pdf.js:195:13
$RootScopeProvider/this.$get</Scope.prototype.$digest@http://localhost:8100/lib/ionic/js/ionic.bundle.js:30239:23
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:8100/lib/ionic/js/ionic.bundle.js:30503:13
@http://localhost:8100/lib/ionic/js/ionic.bundle.js:65426:7
defaultHandlerWrapper@http://localhost:8100/lib/ionic/js/ionic.bundle.js:16787:3
createEventHandler/eventHandler@http://localhost:8100/lib/ionic/js/ionic.bundle.js:16775:9
triggerMouseEvent@http://localhost:8100/lib/ionic/js/ionic.bundle.js:2953:3
tapClick@http://localhost:8100/lib/ionic/js/ionic.bundle.js:2942:3
tapMouseUp@http://localhost:8100/lib/ionic/js/ionic.bundle.js:3018:5

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions