Skip to content

Commit

Permalink
I added possibility to set current page as attribute of the directive
Browse files Browse the repository at this point in the history
  • Loading branch information
voskova committed May 13, 2015
1 parent d88addf commit 868dfd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/angular-pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
link: function(scope, element, attrs) {
var url = scope.pdfUrl,
pdfDoc = null,
pageNum = 1,
pageNum = (attrs.page ? attrs.page : 1),
scale = (attrs.scale ? attrs.scale : 1),
canvas = (attrs.canvasid ? document.getElementById(attrs.canvasid) : document.getElementById('pdf-canvas')),
ctx = canvas.getContext('2d'),
Expand Down

0 comments on commit 868dfd3

Please sign in to comment.