使用 ui.bootstrap 导致轮播问题 [英] using ui.bootstrap causing issues with carousel
问题描述
我在让转盘正常工作时遇到问题.我使用 yeomen 来搭建 angular 应用程序.我收到此错误
错误:[$compile:ctreq] 指令 'slide' 所需的控制器 'carousel' 无法找到!http://errors.angularjs.org/1.2.26/$compile/ctreq?p0=carousel&p1=slide在 http://localhost:9000/bower_components/angular/angular.js:78:12在 getControllers (http://localhost:9000/bower_components/angular/angular.js:6543:19)在 nodeLinkFn (http://localhost:9000/bower_components/angular/angular.js:6712:35)在 http://localhost:9000/bower_components/angular/angular.js:6913:13在 http://localhost:9000/bower_components/angular/angular.js:8113:11在wrappedCallback (http://localhost:9000/bower_components/angular/angular.js:11573:81)在wrappedCallback (http://localhost:9000/bower_components/angular/angular.js:11573:81)在 http://localhost:9000/bower_components/angular/angular.js:11659:26在 Scope.$eval (http://localhost:9000/bower_components/angular/angular.js:12702:28)在 Scope.$digest (http://localhost:9000/bower_components/angular/angular.js:12514:31) <div ng-class="{'主动':离开 ||(活动 && !进入),'prev': (next || active) &&方向=='上一个','next': (next || active) &&方向=='下一个','右':方向=='上一个','左':方向=='下一个'}" class="left carousel-control item text-center ng-isolate-scope" ng-transclude="" href="#Carousel" data-slide="prev"> angular.js:10072错误:[$compile:ctreq] 无法找到指令幻灯片"所需的控制器轮播"!http://errors.angularjs.org/1.2.26/$compile/ctreq?p0=carousel&p1=slide在 http://localhost:9000/bower_components/angular/angular.js:78:12在 getControllers (http://localhost:9000/bower_components/angular/angular.js:6543:19)在 nodeLinkFn (http://localhost:9000/bower_components/angular/angular.js:6712:35)在 http://localhost:9000/bower_components/angular/angular.js:6913:13在 http://localhost:9000/bower_components/angular/angular.js:8113:11在wrappedCallback (http://localhost:9000/bower_components/angular/angular.js:11573:81)在wrappedCallback (http://localhost:9000/bower_components/angular/angular.js:11573:81)在 http://localhost:9000/bower_components/angular/angular.js:11659:26在 Scope.$eval (http://localhost:9000/bower_components/angular/angular.js:12702:28)在 Scope.$digest (http://localhost:9000/bower_components/angular/angular.js:12514:31) <div ng-class="{'主动':离开 ||(活动 && !进入),'prev': (next || active) &&方向=='上一个','next': (next || active) &&方向=='下一个','右':方向=='上一个','左':方向=='下一个'}" class="right carousel-control item text-center ng-isolate-scope" ng-transclude="" href="#Carousel" data-slide="next"> angular.js:10072
这是我的 html 文件
<样式>#slides_control >div{高度:200px;}图片{保证金:自动;宽度:400px;}#slides_control {位置:绝对;宽度:400px;左:50%;顶部:20px;左边距:-200px;}.carousel-control.right {背景图像:线性渐变(向右,rgba(0, 0, 0, .0001) 0%, rgba(237, 232, 232, 0.5) 100%)!重要;}.carousel-control.left {背景图像:线性渐变(向右,rgba(249, 248, 248, 0.5) 0%, rgba(0, 0, 0, .0001) 100%)!重要;}</风格><div id="旋转木马" class="旋转木马幻灯片"><ol class="carousel-indicators"><li data-target="Carousel" data-slide-to="0" class="active"></li><li data-target="Carousel" data-slide-to="1"></li><li data-target="Carousel" data-slide-to="2"></li></ol><div class="carousel-inner"><div class="item active"><img src="images/sliders/main_page_slider/PhoneApp_Website_Home_41.png" class="img-responsive">
<div class="item"><img src="images/sliders/main_page_slider/PhoneApp_Website_Home_45.png" class="img-responsive">
<div class="item"><img src="images/sliders/main_page_slider/PhoneApp_Website_Home_49.png" class="img-responsive">