Skip to content

Commit

Permalink
Merge branch 'matejhustava-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
sayanee committed May 26, 2015
2 parents 88395ee + 2bbb5bf commit f1e7d51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion example/js/directives/angular-pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@
viewport: viewport
};

page.render(renderContext);
var pageRendering = page.render(renderContext);
pageRendering.promise.then(function() {
if (typeof scope.onPageRender === 'function' ) {
scope.onPageRender();
}
});
});
};

Expand Down

0 comments on commit f1e7d51

Please sign in to comment.