html编辑器中无法识别Angularjs ui引导转盘标记
我正在为转盘使用角度引导,但问题是,在我的html编辑器中,标记无法识别,因此无转盘、滑块、无控件或指示器显示: 我使用的是angular1.4.5、angular-bootstrap0.13.4和bootstrap3.2.0 我也很想改变顺序,但没有结果,它在plunker中工作得非常好 有什么建议吗,谢谢 控制器-html编辑器中无法识别Angularjs ui引导转盘标记,angularjs,carousel,angular-bootstrap,Angularjs,Carousel,Angular Bootstrap,我正在为转盘使用角度引导,但问题是,在我的html编辑器中,标记无法识别,因此无转盘、滑块、无控件或指示器显示: 我使用的是angular1.4.5、angular-bootstrap0.13.4和bootstrap3.2.0 我也很想改变顺序,但没有结果,它在plunker中工作得非常好 有什么建议吗,谢谢 控制器- angular.module('app', ['ui.bootstrap']); function CarouselDemoCtrl($scope) { $scope.my
angular.module('app', ['ui.bootstrap']);
function CarouselDemoCtrl($scope) {
$scope.myInterval = "false";
$scope.slides = [{
Heading: " Cards",
list_categories: [{
id: 'bc1',
name: ' card 1',
response: 'Hello, card 1'
}, {
id: 'bc2',
name: ' card 2',
response: 'Hello, card 2'
}, {
id: 'bc2',
name: ' card 3',
response: 'Hello, card 1'
}]
}, {
Heading: "Documents",
list_categories: [{
id: 'd1',
name: 'Template1',
response: 'Hello, 1'
}, {
id: 'd2',
name: 'Template2',
response: 'Hello, 2'
}, {
id: 'd2',
name: 'Template2',
response: 'Hello, 3'
}]
}, {
Heading: "Other Types",
list_categories: [{
id: 'o1',
name: 'Other1',
response: 'Hello,Others 1'
}, {
id: 'o2',
name: 'Other2',
response: 'Hello, Others 2'
}, {
id: 'o2',
name: 'Other3',
response: 'Hello, Others 3'
}]
}];
}
Html文件-
<div ng-app="app">
<div ng-controller="CarouselDemoCtrl" id="slides_control">
<div>
<carousel interval="myInterval">
<slide ng-repeat="slide in slides" active="slide.active">
<h2>{{slide.Heading}}</h2>
<select id="sel" ng-model="selecteditem" class="input-block-level" ng-options="obj.response as obj.name for obj in slide.list_categories" >
<option value="">Select template</option>
</select>
<h4>Response: {{selecteditem}}</h>
</slide>
</carousel>
</div>
</div>
</div>
这是我使用的命令-
标签的名称已更改为uib转盘和uib幻灯片 免费范例:
<uib-carousel interval="myInterval">
<uib-slide ng-repeat="slide in slides track by $index" active="slide.active">
<img ng-src="{{slide.image}}" style="margin:auto;">
</uib-slide>
</uib-carousel>
更多信息,朋友,一些代码可能,错误,无论什么,请!如果它在plunker中正常工作,但在您的代码中不正常,那么要么您的代码不完全匹配,要么您在某个地方丢失了一个脚本。为什么有人会投票这是丢失了我。请看看,我已经更新了html文件和控制器。