Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

ngCropper on load new image -> not working #33

Open
djpysu opened this issue May 20, 2016 · 1 comment
Open

ngCropper on load new image -> not working #33

djpysu opened this issue May 20, 2016 · 1 comment

Comments

@djpysu
Copy link

djpysu commented May 20, 2016

When I try to upload a second image, it's not working - the cropper remains with the first image.

@jayquest
Copy link

jayquest commented Jun 6, 2016

@djpysu I found a solution on the #22

I changed the method onFile and solved.
See:

$scope.onFile = function (blob) {
        Cropper.encode((file = blob)).then(function (dataUrl) {
            $scope.dataUrl = dataUrl;
            $timeout(hideCropper);
            $timeout(showCropper);  // wait for $digest to set image's src
        });
    };

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

No branches or pull requests

2 participants