How can i trigger a click event for li elements specifying their index from the angularjs directive?
I have tried using $first for triggering click for the first element, but it
This is an extension to Langdon's answer with a directive approach to the problem. If you're going to have multiple galleries on the page this may be one way to go about it without much fuss.