angular-file-saver icon indicating copy to clipboard operation
angular-file-saver copied to clipboard

new Blob not working in Safari.

Open vijaypatoliya opened this issue 9 years ago • 2 comments

I have used new Blob to save file in angular. var textData='test'; var data = new Blob([textData], { type: 'application/xhtml+xml;charset=utf-8' });.

I get below error.

[object BlobConstructor]' is not a constructor (evaluating 'new Blob([creativeHtml], { type: 'application/xhtml+xml;charset=utf-8' })')

vijaypatoliya avatar Sep 07 '16 07:09 vijaypatoliya

inject "Blob.js"

WuglyakBolgoink avatar Oct 10 '16 11:10 WuglyakBolgoink

make sure you use angular-file-saver.bundle.js to include the extra libraries and polyfills and then as Wug said, inject Blob in your controller

joeylgutierrez avatar Dec 13 '16 16:12 joeylgutierrez