pedroabreu / ion-gallery

Ionic gallery directive
MIT License
124 stars 61 forks source link

Delete an image from the gallery #77

Open iamsim opened 7 years ago

iamsim commented 7 years ago

I am implementing this to show a set of images that are captured. I should be able to delete an image from the set at any point of time. Please help me with this.

pedroabreu commented 7 years ago

How are you trying to do this ? It should work by simply deleting it from the photos passed down to the directive

iamsim commented 7 years ago

I have an array from which ion-gallery images are populate. I am capturing images from camera/gallery and adding images to the array and then submit the array to my backend to store.

I need a mechanism to show a delete icon on every image. On click of which should delete the respective image from the array. I can do the splice from array but I need a mechanism to place a button on every image to delete that image.