pedroabreu / ion-gallery

Ionic gallery directive
MIT License
124 stars 61 forks source link

Embedding Custom Link #65

Closed artwaniparas closed 8 years ago

artwaniparas commented 8 years ago

I want to make an application where a link would be displayed with every image in modal window . On clicking it another page should open which will have details on that image? Can you please guide how to implement it

pedroabreu commented 8 years ago

From the top of my head, you can pass a link to the subtitle and work from there. More help than that, just by changing the source to trigger a difference action on tap on the image

artwaniparas commented 8 years ago

That comes very hand, thanks. I tried putting the link in subtitle in the below format

sub: '<a href=#/app/playlists/3>Divine Jewel</a>'

but now I think, I am not able to understand how to pass a unique value for every image, for example in above code,3 is passed with first image..

pedroabreu commented 8 years ago

You just need to construct the content of sub for every image and pass it to the directive