title: Check element has class in angular5
body: <p>is there any way to check an element has a class for eg in angular1 </p>
  
  <pre><code>angular.element(myElement).hasClass('my-class');
  </code></pre>
  
  <p>How can I achieve the same in angular5 </p>