/** * Created by robin on 11/3/15. */ 'use strict'; angular.module('luticateUtils'). controller('luticateDialogError', ['$scope', 'data', '$state', function ($scope, data, $state) { $scope.message = data.message; $scope.showLogin = data.data.Status == 401; $scope.reconnect = function() { $scope.$dismiss(); $state.go('login'); }; }]);