‘;
document.getElementById(‘archives-slid’).innerHTML = content
}else{
$(‘#archives-slid’).trigger(‘destroy.owl.carousel’).removeClass(‘owl-loaded owl-drag’);
$(‘#archives-slid’).find(‘.owl-stage-outer’).children().unwrap();
angular.forEach(JSONImageList, function (item, index) {
content += ”;
});
if(document.getElementById(‘archives-slid’).innerHTML = content){
$compile(document.getElementById(‘archives-slid’))($scope);
var prop = {
loop:false,
margin:0,
lazyLoad:true,
nav:true,
onChanged: function() {
var blazy = new Blazy();
},
responsive:{
0:{
items:2,
margin:0
},
660:{
items:3,
margin:0
},
830:{
items:4
},
1100:{
items:5
}
}
}
$(‘#archives-slid.owl-carousel’).owlCarousel(prop);
}
}
}
} catch (err) {
console.log(‘archive listing response not getting’)
}
});
}
}
}]);