Uib-alert css 样式不适用

Uib-alert css style is not applying

<uib-alert  ng-repeat= "alert in ConfigurationAlerts"  close="closeAlert($index)">  {{alert.msg}} </uib-alert>

var eWiggle = angular.module('eWiggleApp',['ui.router', 'ngAnimate', 'ui.bootstrap','blockUI','ngCookies']);

从 2.0 版开始,uib-alert 指令已更改为属性而不是元素,这意味着您需要将其附加到 div。您也没有指定 class,它决定了警报的配色方案。您的示例应如下所示:

<div uib-alert ng-class="'alert-success'" ng-repeat="alert in ConfigurationAlerts"  close="closeAlert($index)"> {{alert.msg}} </div>

The documentation has an example which is worth looking at.