SmartIT_Extensions/BMC/smart-it-full-helix/scripts/app/dashboard/dashboard-controller.js

27 lines
966 B
JavaScript

"use strict";
(function () {
'use strict';
angular.module('dashboardModule')
.controller('DashboardController', ['$scope', 'dashboardService', '$modal', 'systemAlertService',
function ($scope, dashboardService, $modal, systemAlertService) {
$scope.showModal = function () {
var alert = systemAlertService.modal({
title: 'some title',
text: 'some text',
buttons: [
{
text: 'update',
result: 'update'
}
]
});
alert.result.then(function (result) {
console.log(' error was submited with result' + result);
}, function (reason) {
console.log(' error was dismissed with result' + reason);
});
};
}
]);
})();