You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.
I have an issue when I use the ng-cropper directive. It returns an error
error, element.cropper in not a function
I tried to patch the sources and put jQuery(element) instead of element at lines 2115 and 2123 and it works now. Did I make a mistake ?
My javascript code:
$scope.cropper={};$scope.cropperProxy='cropper.first';$scope.options={maximize: true,aspectRatio: 2/1,crop: function(dataNew){data=dataNew;}};$scope.show_cropper=function(){$scope.$broadcast('cropper:show');}$scope.on_logo_file=function(data){Cropper.encode((file=data)).then(function(dataUrl){$scope.logoUrl=dataUrl;$timeout($scope.show_cropper);// wait for $digest to set image's src});}
Hi,
I have an issue when I use the ng-cropper directive. It returns an error
I tried to patch the sources and put jQuery(element) instead of element at lines 2115 and 2123 and it works now. Did I make a mistake ?
My javascript code:
My includes
My html
Thanks !
The text was updated successfully, but these errors were encountered: