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