Skip to content
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

Angular2 - otherwise is not working the first time #3227

Closed
danicomas opened this issue Dec 23, 2016 · 2 comments
Closed

Angular2 - otherwise is not working the first time #3227

danicomas opened this issue Dec 23, 2016 · 2 comments
Labels

Comments

@danicomas
Copy link

danicomas commented Dec 23, 2016

The first time I do http://<domain> is not loaded the first component(UsersComponent), only the AppComponent. If I do http://<domain>/#/ it works well.

I attach the plunkr below:
http://plnkr.co/edit/9UM8TMjf1xCj5nEsdDmR

@christopherthielen

P.S:
I relate other issue I opened: #3223 (comment)

@christopherthielen
Copy link
Contributor

At first glance, this does appear to be a bug, thanks for the report (and also for the great plunkers! so very nice to get plunkers right away!)

For now you can use otherwise: { state: 'users' }

http://plnkr.co/edit/2B9wb1GNNK3k8qrBQbFr?p=preview

@christopherthielen
Copy link
Contributor

Moving this bug to the ng2 repository: ui-router/angular#17

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

No branches or pull requests

2 participants