js
var mainApp = angular.module('mainApp', []);]
mainApp.directive('onFinishRenderFilters', function ($timeout) {
return {
restrict: 'A',
link: function(scope, element, attr) {
if (scope.$last === true) {
$timeout(function() {
// 执行
show_type();
scope.$emit('ngRepeatFinished');
});
}
}
};
});
html
<div ng-repeat="vo in item" on-finish-render-filters>
</div>