-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Default state #89
Comments
$urlRouterProvider.otherwise('/') // or whatever the URL of your default state is (the state needs to be declared separately) |
Thanks! |
Can you describe this to me please? |
Yes you'll need to inject $urlRouterProvider into your config function along with $stateProvider. Use $sP to set up all your states and then $uRP to set up a single otherwise.
|
This isn't exactly working for me. http://stackoverflow.com/questions/17200231/how-to-set-default-url-route |
@bkuhl, I responded on SO -- I think the issue is more with angular than |
Hi,
in angular.js there's a possibility to configure the default route (using $routeProvider.otherwise() API). Is there anything in ui-route that can be used to achieve similar functionality? I need this to ensure the customer that opens the URL without the path part will automatically be redirected to a default state.
Thanks.
The text was updated successfully, but these errors were encountered: