How to check if element has class with AngularJS?

for those (including me) who could not get their head around Angular’s documentation, here is an example which worked for me:

angular.element(myElement).hasClass('my-class');

angular.element(myElement).addClass('new-class');

angular.element(myElement).removeClass('old-class');

hope this help someone …

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)