<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']);
答案 0 :(得分:3)
从版本2.0开始,uib-alert指令已更改为属性而非元素,这意味着您需要将其附加到div
。您还没有指定一个类,这决定了警报的颜色方案。您的示例应如下所示:
<div uib-alert ng-class="'alert-success'" ng-repeat="alert in ConfigurationAlerts" close="closeAlert($index)"> {{alert.msg}} </div>