Skip to content

Instantly share code, notes, and snippets.

@pgtruesdell
Created April 7, 2015 03:24
Show Gist options
  • Save pgtruesdell/a6dcac497723ac7a0ded to your computer and use it in GitHub Desktop.
Save pgtruesdell/a6dcac497723ac7a0ded to your computer and use it in GitHub Desktop.
AngularJS: UI Router - Infinite Routing Loop Fix
$urlRouterProvider.otherwise( function($injector, $location) {
var $state = $injector.get("$state");
$state.go("app.home");
});
@pgtruesdell
Copy link
Author

Credit for this snippet is from @frankwallis.

UI-Router Issue: angular-ui/ui-router#600

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment