I am using angular-evaporate https://github.com/uqee/angular-evaporate for uploading files to Amazon Web Service(AWS). I need to add a cancel button in it.There is a function already available in Evaporate.js.
_.cancel = function(id){
l.d('cancel ', id);
if (files[id]){
files[id].stop();
return true;
} else {
return false;
}
};
But i don't know how to cal it on a button click.I am new in angulare js,Please help me.