You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
facepalm - I was doing $urlRouterProvider.otherwise(redirectTo: "/") instead of just passing in a String as the argument. Thanks for the reference. Closing.
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. Theotherwise
function doesn't seem to be available in$routeProvider
any longer after I load in thestates
library.Cheers
The text was updated successfully, but these errors were encountered: