@mlynch I am wondering why this $element.addClass isn't in the ng-class in the template instead?