angularjs download xml file

Solutions on MaxInterview for angularjs download xml file by the best coders in the world

showing results for - "angularjs download xml file"
Cristian
25 May 2016
1var element = document.createElement('a');
2     var blob = new Blob([data], {
3       type: 'text/xml'
4     });
5     var url = URL.createObjectURL(blob);
6     element.href = url;
7     element.setAttribute('download', 'acl.xml');
8     document.body.appendChild(element); 
9     element.click();
10