How do you Bind to Angular-UI's Carousel Slide Events?

后端 未结 6 1673
一整个雨季
一整个雨季 2020-12-02 21:24

I\'m using Angular-UI\'s carousel and I need to tell my google charts to redraw after they have slid into view. In spite of what I\'ve read, I can\'t seem to hook into the e

6条回答
  •  佛祖请我去吃肉
    2020-12-02 22:17

    And if you just want to start playing a video when the slide comes into view, and pause when it leaves:

    JS

    {# Uses angular v1.3.20 & angular-ui-bootstrap v0.13.4 Carousel #}
    {% addtoblock "js" %}{% endaddtoblock %}
    {% addtoblock "ng-requires" %}videoplay{% endaddtoblock %}
    

    NOTE: Has additional bits for Django

    HTML:

    
      
       

提交回复
热议问题