未捕获的TypeError:$(...)。owlCarousel不是函数angular-meteor

时间:2015-11-19 14:45:25

标签: angularjs meteor owl-carousel angular-meteor

我正在使用angular-meteor来使用此软件包从https://atmospherejs.com/richsilv/owl-carousel

安装它

在我看来我把这个

<div id="owl-demo" class="owl-carousel owl-theme">

  <div class="item"><img src="http://placehold.it/2000x1000" alt="The Last of us"></div>
  <div class="item"><img src="assets/fullimage2.jpg" alt="GTA V"></div>
  <div class="item"><img src="assets/fullimage3.jpg" alt="Mirror Edge"></div>

</div>

<script>
$(function(){

$("#owl-demo").owlCarousel({

    navigation : true, // Show next and prev buttons
    slideSpeed : 300,
    paginationSpeed : 400,
    singleItem:true

    // "singleItem:true" is a shortcut for:
    // items : 1, 
    // itemsDesktop : false,
    // itemsDesktopSmall : false,
    // itemsTablet: false,
    // itemsMobile : false

  });
});
</script>

但我总是得到owlCarousel is not a function我做错了什么?

修改

enter image description here

enter image description here

0 个答案:

没有答案