gitawego / cordova-screenshot

screenshot plugin for cordova/phonegap
Other
211 stars 167 forks source link

trying to work in angularjs #63

Open ghost opened 9 years ago

ghost commented 9 years ago

I really need help. I'm using angularjs in my project.

I installed it via cordova add.

I added those angularjs lines at the end of my controller.

Then i use a ng-click to call a function that has

navigator.screenshot.save(function(error,res){ if(error){ console.error(error); }else{ console.log('ok',res.filePath); }

nothing happens });

ghost commented 9 years ago

i just needed to add cordova.js to my index.html and that worked for me