ng-csv icon indicating copy to clipboard operation
ng-csv copied to clipboard

safari can't download csv file

Open jokingzhang opened this issue 7 years ago • 2 comments

I used ng-csv like this.

<a href="javascript:;" ng-show="vm.items.length > 0" ng-csv="vm.exportItems" csv-header="['姓名', '手机号', '邮箱', '公司']" charset="utf-8" add-bom="true" filename="{{ vm.exportFile }}" class="pull-right im-member-export">
  <i class="fa fa-download"></i> export
</a>

It works on Chrome, Firefox, IE is good, but it can't work on Safari. In Safair , it open a new tab just like this. image

Thanks read, please help

jokingzhang avatar Sep 05 '17 07:09 jokingzhang

+1 Exactly as described

ZelimDamian avatar Sep 07 '17 12:09 ZelimDamian

as quoted in this plugin (at the bottom of the readme) safari is unsupported entirely by this plugin.

WillBDaniels avatar Sep 11 '17 20:09 WillBDaniels