function sliderBg() {
$('.bgcolor').vegas({
delay: 6000,
timer: false,
loop:false,
transitionDuration: 3000,
animation: 'kenburns',
slides: [
{ src: "img/image1.jpg" },
{ src: "img/image1.jpg" },
{ src: "img/image1.jpg"}
],
end: slideUpMain
});
setInterval(this.renewClock(), 1000); // Не пашет
setInterval(function(){
this.renewClock.call(this);
}, 1000); // Пашет
.modal-open {
overflow: hidden;
}
function ctrl() {
var vm = this;
var array = [2,1,3];
vm.filteredRows= null;
function doFilter(array) {
//фильтруем...
return filtered;
}
vm.$onInit = function () {
vm.filteredRows= doFilter(array);
}
<tr ng-repeat="row in $ctrl.filteredRows></tr>