The AngularJS Noob Handbook has some code which reduces class manipulation to a simple expression and binding :
...&
like this example below :
div(ng-class=" condition ? ['class_one', 'class_two'] : ['class_three', 'class_four']")