Fix ng-class with ternary operator