$('input.filehandle2').data('callback', function(){ swal({ title: "Upload Receipt", text: '<img style="height:200px;" src="'+imageUpload+'" />', html:true, showCancelButton: true, cancelButtonText: "Close", confirmButtonColor: "#DD6B55", confirmButtonText: "Submit", closeOnConfirm: false },function(){ let post = {} post['_token'] = _token; post['id'] = id; post['receipt'] = $('input.uploadreceipt2').val(); if(post['receipt'] == ''){ $('a.upload-btn').text("Please Upload Receipt").fadeOut('fast', function(){ $(this).fadeIn('fast'); }); return false; } $.post('/member/pending/submitreceipt', post, function(obj){ if(obj.status){ swal({ title:obj.title, text:obj.msg, type:'success', html:true },loadTransactions); }else{ swal({ title:obj.title, text:obj.msg, type:'error' }); } },'json'); }); }).trigger('click');$('input.filehandle2').data('callback', function() << este código no funciona en mi angularjs (aplicación móvil) pero funciona bien en web JS.
Para angularjs, ¿cómo debo reemplazar esto?