SmartIT_Extensions/BMC/smart-it-full-helix/scripts/app/common/progress-modal-directive.js

24 lines
643 B
JavaScript

"use strict";
(function () {
'use strict';
angular.module('myitsmApp')
.directive('progressModal', function () {
return {
restrict: 'AE',
replace: true,
templateUrl: 'views/common/progress-modal-directive.html',
scope: {
title: '@',
text: '@',
launchNew: '@',
if: '='
},
controller: ['$scope', function ($scope) {
$scope.launchNewWindow = function () {
window.open('#/');
};
}]
};
});
}());