Click here to Skip to main content
15,742,180 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This code is proper working when i am using it into the html.
But when i use the same code for angularJS it giving me 404 error,

Why i am unable to export the file from my desktop.

someone have idea please suggest me.

XML
<tr>
                       <th>Country</th>
                       <th>VARCHAR</th>
                       <th>40</th>
                       <td><a class="btn btn-primary" href="Region Map.xlsx" target="_blank">Download_Region</a></td>
                           </tr>
                   <tr>
                       <th> Region</th>
                       <th>VARCHAR</th>
                       <th>45</th>
Posted

1 solution

I think it is because of routing in angular. Try to use absolute url, like http://www.mypage.com/sub/file.xlsx and if that works figure out the correct url for your scope.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900