var module = angular.module('testApp', [])
.controller('myC',function(){
$scope.ta = [1,2,3,4,5,6];
})
.directive('onFinishRender', function () {
return {
restrict: 'A',
link: function (scope, element, attr) {
if (scope.$last === true) {
element.ready(function () {
$("#r_img").remove();
});
}
}
}
});
1
2
3
4
{{
建议你使用angularjs 插件 angularjs-spinner