I am using following code in angularjs controller file:
var anchor = angular.element('<a/>');
anchor.attr({
href: '/Download/MyFile?id=' + myId + '&format=pdf'
})[0].click();
It's working fine in chrome. But not working in firefox mozilla.
Any one have solution for this.
Total Answered: 1 Total Marked As Answer: 1 Posted On: 15-Sep-2017 01:23