<div class="situation" ng-repeat="item in resident track by $index" repeat-history-finish>
$scope.$on('renderOverHistory',function () {
})
.directive('repeatHistoryFinish',['$timeout',function($timeout){
return {
restrict: 'ECMA',
link:function(scope,element,attrs){
if(scope.$last== true){
$timeout(function() {
scope.$emit('renderOverHistory');
});