<div class="alert alert-danger" ng-show="alertType === 'serverError'"> <button type="button" class="close" ng-click="alertType=''" data-dismiss="!alertType==='serverError'"> <span aria-hidden="true">×</span><span class="sr-only">@Labels.close</span></button> <i class="fa fa-exclamation-circle fa-2x"></i> < pre >{{ alertMessage }}< /pre > </div>The only thing missing is the white background of a pre instead of the red. I'll try applying the same alert class on the pre and re-test.