app.directive('onfinishrenderfilters',function ($timeout) {
return {
restrict: 'A',link: (scope,element,attr) {
if (scope.$last === true) { //判断是否是最后一条数据
$timeout( () {
scope.$emit('ngRepeatFinished'); 向父级scope传送ngRepeatFinished命令
});
}
}
};
});
<div class="fixed-table-container" style="margin-right: 0px;">
table ="table table-hover lamp-table">
theadtr>
th></th style="text-align: center; " data-field="name_device-id" tabindex="0"
ng-repeat="i in provider.geoZoneListHead track by $index" ng-hide=i.bol>
="th-inner sortable "="padding-right: 10px">{{i.name}}
</div="fht-cell"="width: 101px;">
tbodytr ng-repeat="i in provider.geoZoneList" onfinishrenderfilterstd><input data-index name="btSelectItem" type="radio"
value="{{$index}}" ng-click="selectInput($index)"td ="nameId0">{{$index+1}}="nameId1">{{i.geoZoneName}}="nameId2">{{i.description}}="nameId3">{{i.totalNumberOfMembers}}="nameId4">{{i.country}}="nameId5">{{i.lastUpdateDate}}table>
>
$scope.$on('ngRepeatFinished',1)"> (ngRepeatFinishedEvent) {
var btnList = $("input[name='btSelectItem']");
btnList.eq(0).attr("checked","checked");
$scope.provider.detalOutlet();
});