Angular在render完成之后,执行Js脚本
AngularJs中,如何在render完成之后,执行Js脚本
app.directive('onFinishRenderFilters', function ($timeout) { return { restrict: 'A', link: function(scope, element, attr) { if (scope.$last === true) { $timeout(function() { scope.$emit('ngRepeatFinished'); }); } } }; });