angularjs-pdf icon indicating copy to clipboard operation
angularjs-pdf copied to clipboard

isolated scopes data-binding

Open Grigorius opened this issue 12 years ago • 2 comments

If you are using for example http://angular-ui.github.io/bootstrap/#/modal which creates an isolated scope - then the pageNum attribute is no longer databinded.

To fix this issue I just moved pageNum one level deeper - so the pointer is referenced: scope.pageData = {}; scope.pageData.pageNum = pageNum;

Also in the example: Viewer.html has <input type="text" min=1 ng-model="pageNum"> it should have (type and model changed) <input type="number" min=1 ng-model="pageData.pageNum">

Grigorius avatar Jul 07 '14 15:07 Grigorius

thanks @Grigorius! I will take a look into this.

sayanee avatar Jul 08 '14 02:07 sayanee

Thanks for your suggestion! I have added this as part of tweaks / variations that can be used with this library by adding a note to the readme and linking it back to this issue.

sayanee avatar Sep 25 '14 14:09 sayanee