title: Pass this element into a function from ng-class
body: <p>I want to pass <code>this</code> element to my validator. Tried <code>this</code>, but it passes a scope of the controller. How to change the code to get into my <code>div</code>?</p>
  
  <pre><code>&lt;div data-ng-class="!validators.headerImageValidator(this) ? 'has-error' : ''"&gt;&lt;/div&gt;
  </code></pre>