Open Ryuno-Ki opened 8 years ago
This looks like a fine solution, but I don't know what you want to be added to the API. The implementation of the gallery controller and how you get your image data is completely up to you, and the lightbox library does not know anything about it.
Because I don't know the URLs ahead of time, I needed a way to figure out them on runtime.
My solution was to add data-attributes in the server-side generated template like so:
(One could render JSON into the data-attributes as well ;-))
In my GalleryController, I filled
$scope.images
like so:I open the modal like
Feel free to extend your API :)