Bootstrap carousel not working with angularjs

后端 未结 9 638
执笔经年
执笔经年 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:34

    Building on what rbanning said, instead of adding the event handler you can just, after replacing the anchor tags with span tags, replace the href attribute with a "data-target" attribute and bootstrap takes care of the rest.

    Like so:

    
    

提交回复
热议问题