javascript - Try to add wookmark layout in angularjs app -


i trying add wookmark layout in angular js app .if there no infinity scroll fine when added angularjs infinity scroll wookmark layout not working means when scroll layout not apply .

my infinity scroll function code -

$scope.onload = function() { $scope.paramurl = $location.url();  $scope.apiurl = $scope.apiurl+$scope.paramurl;  if ($scope.paramurl) {   $http({method: 'get',url:$scope.apiurl}).success(function(data) {     $scope.productdata = data.deals;      $scope.qitem = data;     }); } else  {   $http({method: 'get', url: $scope.url}).success(function(data) {         $scope.productdata = data.deals;          }); }   

};

and jquery wookmark code -

$(window).load(function() { settimeout(function() {     (function ($){       var handler = $('#tiles li');       handler.wookmark({                     autoresize: true,           container: $('#main_pro_content'),            offset: 11,            outeroffset: 0,            itemwidth: 200,           fillemptyspace: true       });          })(jquery);  }, 500); 

});


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -