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(['app', 'angular'], function (app, angular) {
app.directive('backButton', function () {
return {
restrict: 'E',
scope: {
previousScreenLabel: '@'
},
controller: function ($scope, $state, $stateParams) {
$scope.goBack = function(){
var currentSectionParamValue = $stateParams.section;
var paramSections = $state.current.data.paramSections;
var backState;
if(paramSections) {
var numParamSections = paramSections.length;
for(var i = 0; i < numParamSections; i++) {
if(paramSections[i].paramValue === currentSectionParamValue) {
backState = paramSections[i].backState;
}
}
}
backState = backState || $state.current.data.backState;
$state.go(backState, $stateParams);
};
},
templateUrl: 'modules/ui-components/back-button/back-button_template.html'
};
});
});