23 lines
762 B
JavaScript
23 lines
762 B
JavaScript
"use strict";
|
|
/**
|
|
* Created by mkumar1 on 14-05-2018.
|
|
*/
|
|
(function () {
|
|
'use strict';
|
|
angular.module('myitsmApp')
|
|
.directive('ngRepeatLoaded', ['$timeout', function ($timeout) {
|
|
return {
|
|
restrict: 'A',
|
|
link: function (scope) {
|
|
if (scope.filterConfig && scope.normalizedFilterConfig) {
|
|
if (scope.filterConfig[scope.$index].name === scope.normalizedFilterConfig[scope.normalizedFilterConfig.length - 1].name) {
|
|
$timeout(function () {
|
|
scope.state.processing = false;
|
|
});
|
|
}
|
|
}
|
|
}
|
|
};
|
|
}]);
|
|
}());
|