Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

define(['angular', 'app'], function (angular, app) {
'use strict';

app.directive('progressBar', function ($state, $timeout, progressService) {
return {
restrict: 'E',
scope: {
hidePrevious: '@',
hideNext: '@',
previous: '&',
next: '&'
},
templateUrl: 'modules/ui-components/progress-bar/progress-bar_template.html',
link: function (scope, elem, attrs) {
scope.hidePrevious = attrs.hidePrevious;
scope.hideNext = attrs.hideNext;
scope.progress = progressService.getProgress();

scope.goPrevious = function () {
if (typeof scope.previous === 'function') {
scope.previous();
}
}

scope.goNext = function () {
if (typeof scope.next === 'function') {
scope.next();
}
}

scope.$on('swipeLeft',function(event){
scope.goPrevious();
});

scope.$on('swipeRight',function(event){
scope.goNext();
});
}
}
});
});