I want a directive to watch the result of an attribute expression such as:
<div scroll-if="test === selectedTest"></div>
So that it can then react to the change and scroll to the particular element. I seem to be struggling to find out how I can watch for changes to that expression.