I am trying to update an existing dynamic web-page that gets images and titles from SQLServer database, which loaded into AngularJS ng-repeat. bxSlider works fine with static data but when it comes to data fetched from web-services with ng-repeat it shows just as image list.
I tried using the following script in header, footer and just after the bxSlider div. But it doesn't worked.
$(window).load(function () {
$(function () {
$('.bxslider').load(function () {
$('.bxslider').bxSlider({
speed: 500,
auto: true,
captions: true,
slideWidth: 800
});
});
});
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.0/angular.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bxslider/4.2.15/jquery.bxslider.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bxslider/4.2.15/jquery.bxslider.min.js"></script>
<!-----bxSlider HTML Code----------------->
<div class="bxslider" ng-controller="appCtrl">
<div ng-repeat="tops in topStories">
<a ng-href="article.html?url={{tops.articleURL}}">
<img ng-src="{{tops.imageURL}}" title="{{tops.title}}">
</a>
</div>
</div>
bxSlider not applied to controller after loading data. How can i fix this to get perfect slider? https://bxslider.com/examples/image-slideshow-captions/
slideitattribute so that it will correctly create and destroy the slider when new day is fetched: next.plnkr.co/edit/UBaGrfDAfrVa6eJN - Pop-A-Stash