我在angularjs和laravel工作,我使用旋转木马滑块并添加到js
下面Angularjs:
app = angular.module('scotchApp', ['ngRoute', 'ui.bootstrap','ui-bootstrap-tpls']);
Js:
ui-bootstrap-tpls-0.11.0.min.js
这是我的代码:
<carousel interval="myIntervals">
<slide ng-repeat="(key, recentinfo) in profilemyrecentgiving" active="slide.active">
<div class="row">
<div class="col-md-12">
<div class='col-md-5 col-xs-5'>
<div ng-if='recentinfo.contribution_story_id != 0'>
<img class="cart-story-image" src='[[recentinfo.project_squ_image]]'>
<img class="cart-storyproject-image" src='[[recentinfo.giving_story_image]]'>
</div>
<div ng-if='recentinfo.contribution_story_id == 0'>
<img class="impact-history-image" src='[[recentinfo.project_rect_image]]'>
</div>
</div>
<div class='col-md-7 col-xs-7 align-left'>
[[recentinfo.project_title]]
</div>
</div>
</div>
</slide>
</carousel>
它的工作正常有时像我刷新页面时会工作但当我从那时起形成另一个页面时,angularjs会给出错误,如
错误:
Failed to load template: template/carousel/carousel.html (HTTP status: {1} {2})
任何人都有想法,请告诉我..