I am trying to use 'this' in ng-class condition, but it doesn't work.
I am essentially trying this:
<div class=".." ng-class="{hidden: $(this).find(..).hasClass('trigger')}">
</div>
I would like AngularJS to apply the class 'hidden' based on the presence of a different class on a nested element.
Should I move the complex code to the controller? How can I reference the element ng-class is being defined on?
Regards!