cesarvr / pdf-generator

Cordova plugin to generate pdf in the client-side
MIT License
107 stars 61 forks source link

Accessing $scope variables in the PDF 'HTML' #88

Open tanmaypandharipande opened 5 years ago

tanmaypandharipande commented 5 years ago

Ionic 1, Angular JS 1.6

var pdfhtml = 'This is the pdf content'; This works perfectly fine.

var pdfhtml = 'This is the pdf {{$scopevariable}}'; This displays same as it it. It is not taking the value of scope variable. And ng-repeat also doesn't work.

Also tried giving ng-controller for the html but that is also not working.