I have a class called late that I'd like to apply conditionally:
<div ng-class="late: isLate"></div>
I have a directive called isLate that performs a calculation and returns a boolean. What is the right way to link these two? I searched the directive documentation and didn't find anything that does this. Maybe using directives isn't the right way to do this?