I have template which starts like :
<li class="list-group-item" ng-repeat="question in question.ChildQuestions" collapse-toggler ng-click="collapseQuestion(this);"> ...
In collapseQuestion
i want to pass object that will be reffered to clicked li
, but when i send it like collapseQuestion(this);
i get some Object
but it seems like it isn't li
(i can't get any class of that object to check what exactly it is).
So what is correct way to pass object in ng-click
?