Skip to content

Commit

Permalink
Merge pull request #8 from imobach/master
Browse files Browse the repository at this point in the history
Toolbar is shown only when showToolbar is set to true
  • Loading branch information
winkerVSbecks committed Jan 25, 2015
2 parents b9c51f4 + 780a7a6 commit 8a0ad4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/pdf-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ angular.module('pdf')
function($window, $log, pdfDelegate) {
return {
restrict: 'E',
template: '<pdf-viewer-toolbar delegate-handle="{{id}}" page-count="pageCount"></pdf-viewer-toolbar><canvas></canvas>',
template: '<pdf-viewer-toolbar ng-if="showToolbar" delegate-handle="{{id}}" page-count="pageCount"></pdf-viewer-toolbar><canvas></canvas>',
scope: true,
controller: 'PdfCtrl',
link: function(scope, element, attrs) {
Expand Down

0 comments on commit 8a0ad4a

Please sign in to comment.