angular-croppie to crop my images. the cropper is working fine but there is a problem. I want to open the cropper in The Modal. But when I click on the
choose file button the modal open with the file explorer window, I want to open the modal after selecting an image from the file explorer and then show that image in the cropper. I'm using AngularJs and Jquery for this function.
CodePen link for my code is <a href="https://codepen.io/Zaraa/pen/RQWKbw" rel="nofollow">here</a>
I've tried my best to explain this issue but if you still don't understand then click on the given link. Please don't mark this question as a duplicate because I've already searched on StackOverflow but still couldn't find the solution.Answer1:
I just added an angular
$watch to the file (length) which triggered the popup instead of the file open button and it works fine.
Here is your updated codepen
<a href="https://codepen.io/declanmcd/pen/OQMRzv?editors=1010" rel="nofollow">codepen</a>