Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new Blob not working in Safari. #32

Open
vijaypatoliya opened this issue Sep 7, 2016 · 2 comments
Open

new Blob not working in Safari. #32

vijaypatoliya opened this issue Sep 7, 2016 · 2 comments

Comments

@vijaypatoliya
Copy link

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' })')

@WuglyakBolgoink
Copy link

inject "Blob.js"

@joeylgutierrez
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants