<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']);发布于 2016-11-19 00:25:21
从2.0版开始,uib-alert指令被更改为属性而不是元素,这意味着您需要将其附加到div。您也没有指定一个类,它决定了警报的配色方案。您的示例应如下所示:
<div uib-alert ng-class="'alert-success'" ng-repeat="alert in ConfigurationAlerts" close="closeAlert($index)"> {{alert.msg}} </div>https://stackoverflow.com/questions/38911254
复制相似问题