I'm curious about the most effective "angular" method for changing the character count style for validation purposes. I have a text area with a 250-character limit. Instead of restricting users to exactly 250 characters, we want to allow them to exceed that limit and show a negative number in red font (similar to Twitter, etc.). What would be the optimal approach for this? Should I use ng-style or ng-class with a boolean evaluation to trigger the change?
<h6 class="subheader right" ng-class="{'alert':'(250 - formData.SubTitle.length) < 0'}">{{250 - formData.SubTitle.length}} /250</h6>
"alert" is the class name to switch to once the character count falls below 0.
UPDATE: In this scenario, what sets ng-class apart from ng-style (if anything)?