I have a directive that i only want active should an element have a certain class. for this i have attempted the following:
<feedback-analytics ng-if="$('#analyticTab').hasClass('active')"></feedback-analytics>
However when the class of the element changes the element is not displayed.
Has anyone done something similar and made it work?