Bootstrap carousel not working with angularjs

后端 未结 9 635
执笔经年
执笔经年 2020-12-03 04:55

I want to use bootstrap carousel along with angular js to display images in carousel content. But, when the navigation links clicked, it displays blank page.

My code

9条回答
  •  無奈伤痛
    2020-12-03 05:13

    This works, without modify the original bootstrap example

    $("a.carousel-control").click(function(e){
        e.preventDefault();
        $(this).parent().carousel($(this).data("slide"));
    });
    

提交回复
热议问题