I have the following accordion which is working fine
<accordion-group is-open="open.first">
<accordion-heading>
My Title
</accordion-heading>
</accordion-group>
The "Accordion-heading" directive translates into something like
<h4 class="panel-title">
<a class="accordion-toggle"
accordion-transclude="heading" ng-click="toggleOpen()" href="">
My Title
</h4>
What I want is when someone clicks on this accordion option/title is to add to toggle a class on the h4 attribute. In jquery I would do it like this
$('.panel-heading .panel-title').on('click', function () {
$(this).toggleClass('actives');
});
I think I have to do it as a directive, but not quite sure how ?