<a class="btn pull-right" ng-class="{true: 'btn-primary', false: 'btn-danger'}[!patient.archived]" ng-click="patient.archived = !patient.archived"> {{!patient.archived && 'Archive' || 'Unarchive'}} patient </a>