title: How to test if event.target.hasClass() using angularJS and jqlite?
body: <p>After a click pass the event to ctrl. I want to write a conditional that will return true if the <code>element.target</code> has the class <code>modal-click-shield</code></p>
  <p><strong>Question:</strong></p>
  <p>How can I use <code>.hasClass()</code> with <code>event.target</code> using angulars' <code>jqlite</code>?</p>
  <p><strong>Problem:</strong></p>
  <p><em>Currently I'm getting a type error saying that:</em></p>
  <pre><code>$scope.exitModal = function(event){
          // Return to current page when exiting the modal, via UI.
          // After state return, should set focus on the matching link.
          var target = event.target;
          console.log(target.hasClass('modal-click-shield'));
  });
  </code></pre>
  <p><strong>Error:</strong></p>
  <blockquote>
  <p>TypeError: undefined is not a function</p>
  </blockquote>
  <p><strong>Html:</strong></p>
  <pre><code>  &lt;div class=&quot;modal-click-shield&quot; ng-click=&quot;exitModal($event)&quot;&gt;
       &lt;div ui-view=&quot;pdw&quot;  class=&quot;product-container&quot;&gt;&lt;/div&gt;
    &lt;/div&gt;
  </code></pre>