我正在使用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
我做错了什么?
修改