Created
October 26, 2013 19:58
-
-
Save matejkramny/7173798 to your computer and use it in GitHub Desktop.
Logout angular ui-router
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.config(function($stateProvider, $urlRouterProvider, $locationProvider) { | |
$stateProvider.state('logout', { | |
url: '/logout', | |
controller: function($scope, $route) { | |
$route.reload() | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, thanks for this. It helped me alot. Here's the version I used: