legalthings / angular-pdfjs-viewer

PDF.js viewer directive for AngularJS
MIT License
137 stars 113 forks source link

Improve consistency in explanation #85

Closed outboundexplorer closed 6 years ago

outboundexplorer commented 6 years ago

1) Initial examples were listed with simply "pdf.src" within the view, however later they were shown as "$ctrl.src" so I changed this to "pdf.src" to improve consistency. I also removed all other occurrences of $ctrl from the views. Although using $ctrl makes sense to explain this, consistency is improved by making them all the same.

2) on-page-load="onPageLoad()" in the view was missing page value so changed to --> on-page-load="onPageLoad(page)"