I have this button
<button class="btn" ng-click="isCollapsed = !isCollapsed"><i class="icon-fullscreen"></i>Details</button>
And when I click on it I would like to switch for
<button class="btn" ng-click="isCollapsed = !isCollapsed"><i class="icon-resize-small"></i>Details</button>
and get it back with icon-fullscreen
when collapsing.
Is there an AngularJS way to do it?