Uib-alert css样式未应用

问题描述:

<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

请详细说明你的问题让观众知道,这个问题您在使用的角度引导警报面对的问题。 – suneetha

+0

我正在使用ui-bootstrap-tpls-2.0.js ..试图做uib-alert popup..Iam只能看到消息.. syling不适用。如果我恢复到旧版本,它正在 旧版本 /* * 角-UI-引导 * http://angular-ui.github.io/bootstrap/ *版本:0.13.4 - 2015-09 -03 *授权方式:MIT * / – Sudha

从版本2.0开始,uib-alert指令已更改为属性而非元素,这意味着您需要将其附加到div。您还没有指定一个类,这是决定警报颜色方案的一个因素。你的榜样应该是这样的:

<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.