Using Isotope with AngularJS (ng-repeat)
问题 I'm trying to use angular to load div's to supply to isotope for layouting. For some reason, I can't use ng-repeat to create the div's. When I do something like, it works fine: [agg.html] <div class="mygrid" iso-grid> <div class="item">myitem</div> </div> [controlers.js] module.directive('isoGrid', function () { return function (scope, element, attrs) { element.isotope({ itemSelector: '.item' }); }; }); module.controller('aggViewport', ['$scope', '$location', function ($scope, $location) {