ng-class don't really behave like this.
google says : What is the best way to conditionally apply a class?
so an answer for your question could be :
<i class="glyphicon" ng-class="{'glyphicon-minus' : item.expanded, 'glyphicon-plus' : !item.expanded}"></i>