Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Update ng-pdfviewer.js #8

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

andykim88
Copy link

Couple of changes made. One was to move canvas and instance_id into scope instead of being globally available. This allows multiple elements on a page or partial. Also changed the scope option for "id" to "@" to allow the "id" attribute to be manipulated by Angular models.

Couple of changes made.  One was to move canvas and instance_id into scope instead of being globally available.  This allows multiple <pdfviewer> elements on a page or partial.  Also changed the scope option for "id" to "@" to allow the "id" attribute to be manipulated by Angular models.
@andykim88
Copy link
Author

After trying to get multiple instances of the pdfviewer tags to work properly, found that the included changes work well and doesn't affect single instances.

@renege
Copy link

renege commented May 26, 2014

Does this work with the newest Angular version? I'm stuck at "angular": "~1.2.5",.

@andykim88
Copy link
Author

It's working for me. I'm using Angular 1.2.16.

Andy

On Mon, May 26, 2014 at 9:19 AM, renege notifications@github.com wrote:

Does this work with the newest Angular version? I'm stuck at "angular":
"~1.2.5",.


Reply to this email directly or view it on GitHubhttps://github.com//pull/8#issuecomment-44188316
.

@renege
Copy link

renege commented May 26, 2014

Ok. Strange: #9

@andykim88
Copy link
Author

Well I couldn't get it working with latest version of pdf.js if that's what
the problem is. I had to use the version you had in the examples folder
which is an older version of it.

Andy

On Mon, May 26, 2014 at 11:45 AM, renege notifications@github.com wrote:

Ok. Strange: #9 #9


Reply to this email directly or view it on GitHubhttps://github.com//pull/8#issuecomment-44199551
.

mwytang added a commit to ubc/compair that referenced this pull request Aug 27, 2014
- currently using ng-pdfviewer from https://github.com/akrennmair/ng-pdfviewer/
- pdf links now opens new tab and display the pdf within a new
AttachmentPDFController
- The preferred way of displaying the pdfs is inline with the other
content, especially for the judgement page. However currently this
library only allows us to display one pdf per page. A fix has been
made but has not been pulled into the master branch of the library.
akrennmair/ng-pdfviewer#8
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants