Skip to content

Is there an otherwise function like in $routeProvider? #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mrrooijen opened this issue Apr 27, 2013 · 2 comments
Closed

Is there an otherwise function like in $routeProvider? #103

mrrooijen opened this issue Apr 27, 2013 · 2 comments

Comments

@mrrooijen
Copy link

I'm trying to figure out how I can reproduce the otherwise redirectTo: "/some/path" behaviour as I try to migrate over to $stateProvider. Loving the concept as I've run in to situations where the Angular Core solution doesn't easily allow me to produce clean/maintainable code when doing multi-level views. Just having trouble figuring out how redirect to a URL when no matches are found. The otherwise function doesn't seem to be available in $routeProvider any longer after I load in the states library.

Cheers

@jeme
Copy link
Contributor

jeme commented Apr 28, 2013

See #89

@mrrooijen
Copy link
Author

facepalm - I was doing $urlRouterProvider.otherwise(redirectTo: "/") instead of just passing in a String as the argument. Thanks for the reference. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants