"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); }); }; } ]); })();