Fix for zone.js error in Safari, Added Typings #221
Reference in New Issue
Block a user
Delete Branch "development"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following changes:
More tasks executed then were scheduled) in Safari by removingNgZonefromFileItem: Since zone.js 0.6.12, callbacks / observables are evaluated correctly in angular's zone by default. Therefore callingNgZone#runis not necessary anymore.FileUploaderandFileItemto include correct type specifications to check against in controllers that include ng2-file-uploadLooks really good, please apply comment and rebase on top of dev branch
PS are you using npm 2?
Applied as suggested.
@valorkin yes - currently we're working with npm 2. Therefore some of those "missing" packages are non-flat dependency related.
Looks really good now! :)
PS: no need to fix, but:
save-exactfor npm :) (non strict deps is a pain :))Thanks for merging @valorkin
npm 3 is much better, indeed. But ionic2 currently sings better with node 4.x. Therefore, we are using its built-in package manager - and that's unfortunately npm 2.
Is this fix already available? Because in my safari browser on my mac, the single file upload on this page is not working: http://valor-software.com/ng2-file-upload/
It should been fixed. Can you post the error message you're receiving?
In Chrome it works ok.
In safari on my mac, the progressbar is already 100% before I have clicked the upload button.
And after uploading, the status is not updated and stays empty.
This is the error I see in the console:
@
Can't find variable: Intl- Until now Safari does not support native i18n. This means that this is not related to this PR.This polyfill should solve this issue: https://github.com/andyearnshaw/Intl.js/
Can you please open an issue for this @lderks?