You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

navbar.controller.js 599B

1234567891011121314151617181920
  1. /**
  2. * Created by robin on 11/1/15.
  3. */
  4. angular.module('luticate')
  5. .controller('NavBarController', ['$scope', 'luticateAuthCache', 'luticateAuthUsers', '$state',
  6. function($scope, luticateAuthCache, luticateAuthUsers, $state) {
  7. var promiseLogout = {
  8. id: "promiseLogout",
  9. loaderGroups: ["body"]
  10. };
  11. $scope.logout = function()
  12. {
  13. luticateAuthUsers.logout(promiseLogout).finally(function()
  14. {
  15. $state.go('login');
  16. });
  17. }
  18. }]);