There is a directive(I am not allowed to make changes to the directive) that I am using, its called `uib-accordion`. On open and close of the accordion I want to set a flag , example `opned=true`. I have noticed that the accordion attaches the `panel-body` class when its opened and removes it when closed. So I am hoping to set the flag depending on the existence of that class on the element. On the controller, I am able to get the DOM element reference through `$timeout()`, but not sure how to watch this, Could someone point me in the right direction ?