title: How to trigger 'click' event of on a file input in Angular?
body: <p>here is the view in <code>jade</code>:</p>
  
  <pre><code>button#save-csv-btn(ng-click="click()") Export CSV
  input#save-csv(style="display:none", type="file", onchange="angular.element(this).scope().saveCSVFileChanged(this)")
  </code></pre>
  
  <p>js:</p>
  
  <pre><code>$scope.click = -&gt;
      # $('#save-csv').trigger('click')
  </code></pre>
  
  <p>Error I get:</p>
  
  <pre><code>Error: $apply already in progress
  </code></pre>