Use ng-class instead of calculate class.