How to download a excel file in angularjs

Excel pushes the XLSX format as default starting in Excel 2007. However There is no standard way to determine if the actual file has been downloaded. +.

If you are using internet explorer then the pdf will automatically download with getting  as the first few characters in an Excel spreadsheet after csv import,