title: Bug in downloading a text file in angular js
body: <p>I have download text file request from backend. I need to download the file by posting get request given in <code>service.js</code> but the problem is I am getting %7d %7d in blank when I am downloading the file. Need assistance.I even tried with ng-href, still no luck</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;button class="btn btn-info" ng-click="downloadAllExhibitors();"&gt;
  &lt;a href="{{newFile}}" target="_blank"&gt;Download&lt;/a&gt;&lt;/button&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>    $scope.downloadAllExhibitors = function () {
      $scope.newFile = service.downloadExhibitor(); 
       }
  </code></pre>
  
  <p>Service.js</p>
  
  <pre><code>   var url =' http://localhost/1290/';
    function downloadExhibitor() {
  
  
              var token = 129821sahh;
              var auth = "Token" + ' ' + token;
  
              var config = {
                  headers: {
                      'Content-Type': 'application/json',
                      'Authorization': auth
                  }
              }
  
         return $http.get(url + 'entity/campaigns/download_exhibitors/', config);
          }
  </code></pre>