Controller 'carousel', required by directive 'ngTransclude', can't be found

前端 未结 2 1944
一个人的身影
一个人的身影 2021-01-04 19:37

Our team implemented a twitter bootstrap carousel for our front page. Everything\'s working fine for Chrome and Firefox. However when we tested it in IE 8, the carousel imag

2条回答
  •  抹茶落季
    2021-01-04 20:09

    Easy fix without disabling ui.bootstrap, just reinitialize carousel directive in your own .js file:

    angular.module('ui.bootstrap.carousel', ['ui.bootstrap.transition'])
        .controller('CarouselController', ['$scope', '$timeout', '$transition', '$q', function        ($scope, $timeout, $transition, $q) {
    }]).directive('carousel', [function() {
        return {
    
        }
    }]);
    

    You can read about this in my blog (russian).

提交回复
热议问题