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.
element.siblings()? Post complete code of directiveng-click? Please show more code. WHat is objective?jQliteused inangular.elementdoesn't havesiblingsmethod unless jQuery is loaded