I'm really not sure what you are trying to achieve, but you need to fix the syntax errors and do something like this:
ng-class="{removeBtn: resource.check_added_to_plan, lastSpan: ($index+1)%3==0}"
So, in the form class1: condition1, class2: condition2, etc...
source
share