bootstrap轮播滑动控件无响应

bootstrap carousel slide control not respond

我是否创建了多个 html 页面,其中 index.html 由滑过几张图片的 bootstrap 轮播组成,我是否连接了所有 html 页面通过 ngroute,问题是在 index.html 中加载轮播时,如果单击轮播中的下一个或上一个按钮,它只会导航到另一个 html 页面或同一页面,我特此粘贴一个工作 plunker link供参考: 请帮我解决这个问题。

Am i creating multiple html pages, where index.html consist of the bootstrap carousel which slided through some couple of images and am i connecting all the html pages through ngroute,The problem is when loading the carousel in index.html if click the next or prev button in the carousel it just navigating to the another html page or it's same page,i hereby paste a working plunker link for reference: http://plnkr.co/edit/VUS8RjQkVQabEBxRWMdB?p=info Please help me to resolve this issues.

只需在您的主控制器中使用它

$scope.$on('$routeChangeSuccess', function () {
  $scope.isIndexPage = $location.path() === '/';
});