Hmm, at the moment I’m working from my laptop at home, and I can’t get a passive version and also can’t feel this problem. But here is what I can offer you now:
I made a very simple directive based on the things I read somewhere:
app.directive('masonry', function() {
return {
restrict: 'AC',
controller: function($scope) {
return $scope.$watch(function(e) {
$scope.masonry.reloadItems();
return $scope.masonry.layout();
});
},
link: function(scope, elem, attrs) {
var container=elem[0];
var options='';
return scope.masonry = new Masonry(container,options);
}
};
, - . , .
, .: -\
, . , . json ? -!