Created
April 7, 2015 03:24
-
-
Save pgtruesdell/a6dcac497723ac7a0ded to your computer and use it in GitHub Desktop.
AngularJS: UI Router - Infinite Routing Loop Fix
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
$urlRouterProvider.otherwise( function($injector, $location) { | |
var $state = $injector.get("$state"); | |
$state.go("app.home"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Credit for this snippet is from @frankwallis.
UI-Router Issue: angular-ui/ui-router#600