Skip to content

Empty $location.search() if move from v0.0.1 to v0.2.0 #385

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
egel opened this issue Sep 5, 2013 · 4 comments
Closed

Empty $location.search() if move from v0.0.1 to v0.2.0 #385

egel opened this issue Sep 5, 2013 · 4 comments
Labels

Comments

@egel
Copy link

egel commented Sep 5, 2013

When I use v0.0.1 and call $location.search() I received data from URL (ie. http://example.com/#/home?mydata1=specialdata1&mydata2=specialdata2 and so on)
but when I tried to move version up to the 0.2.0 this method $location.search() give me empty object (don't now why).
How to get data from URL using v0.2.0?

@nateabele
Copy link
Contributor

That seems pretty unlikely, since $location.search() is a totally separate API. Can you post a plunkr that demonstrates the issue?

@egel
Copy link
Author

egel commented Sep 6, 2013

Yeah, of course. If I find some time in weekend I'll drop a plunkr example.

@edrmp
Copy link

edrmp commented Oct 3, 2013

Hi.

We're with the same issue here, and I believe this plunkr demonstrates that:

http://plnkr.co/edit/4z0qZp?p=preview

Try following the link. The $location.search() appears to be showed before the route change. Curiously, if you follow the link again, or enter manually the address twice, it works.

There are also a video, with the steps that we encountered to reproduce the behavior:

http://youtu.be/LCGix0XiQnE

Thanks in advance

@edrmp
Copy link

edrmp commented Apr 8, 2014

For what it worth, this does not occur on recent versions of angular-ui-router.

See #125, #593

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

3 participants