Angularjs directive : accessing sibling elements in link function

Viewed 6289

I've googled a lot to find an answer to a question which seems fundamental to me, but surprisingly with no success. The official doc left me without answers too. So the simple question is : how to access sibling elements inside the link function of a directive ?

I have a view with an ng-repeat. My directive bind a click on each of the ng-repeat elements :

link: function (scope, element) {
    element.bind('click', function () {
        // how to access element.siblings here ?
...

Thanx.

1 Answers
Related