-
Notifications
You must be signed in to change notification settings - Fork 26.3k
feat(Location): add search() method which returns an Object #4905
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
Conversation
8f91adb
to
0036660
Compare
Since the return value of |
Shouldn't |
@flyingmutant Seems like it should. Hopefully a core team member can comment on that. |
@gkalpak I agree with you on making the returned Object immutable. I'll look into this. |
@NathanWalker Your error means that there is no In JS case you simply rexport the function as is. In dart case you have to call https://api.dartlang.org/1.12.2/dart-core/Uri/decodeComponent.html |
0036660
to
0136d15
Compare
Thanks @mhevery , that's exactly what I needed to know. I updated the PR, squashed the commits and believe I have it solved now. |
Not totally sure how I feel about this– I don't want applications injecting and and using search params. They should use But the work on encoding/decoding params is much needed. Either way, this is some solid work, @NathanWalker. Please give me a bit to think about how best to proceed. @mhevery – please check with me next time before marking tasks as community help so that we can be sure that the design is right. It's frustrating for developers to put a bunch of work into something that isn't conceptually quite right. |
0136d15
to
dc671ae
Compare
@btford I'm ok with using If |
Yep, Angular 2 has a different model. Component all the things! On Tue, Oct 27, 2015 at 9:12 AM Nathan Walker [email protected]
|
If we can inject RouteParams without including the router package then we Basically we need an easy way to grab all query params at any time whether On Tue, Oct 27, 2015 at 2:18 AM Brian Ford [email protected] wrote:
|
Right now But yes, I do want to eventually support use of |
Do Unless there is some reason (I am missing right now), that ng2 apps should not rely on/access the URL's query params. (If that's the case, prepare yourself for looots of complaining 😃) |
dc671ae
to
e8dd5e8
Compare
01c5518
to
b6e7aa9
Compare
b6e7aa9
to
01c5df7
Compare
Hi. I looked in the source code and it seems that the search() function is not equivalent to what we had in Angular1. Is there any plan to also support setter for query params? |
@tagazok Thank you for pointing that out! I'll see about making the changes to this PR to support that. |
@btford Is this something you can finish, or would you like me to take this over? |
@mhevery I was digging into this today making progress with the changes but when I tried to run
I have had trouble historically with this project build unfortunately. This is after removing If you know a quick fix for the above would be appreciated. At moment I'm stuck unable to proceed on this feature. |
My system specs are more than adequate I would think: |
Just went searching and found this: |
Curious if anyone could comment on this issue: #4943 |
This is obsolete by the new router work. :-( This PR is stale (does not rebase; pass CI; had no activity for a while). It is probably our fault, and we are sorry. In an effort to keep our PR queue under control, and prevent us from taking too long to get back to you we are cleaning up the queue. Unfortunately this means that this PR is getting closed. If you would like to resurrect this change, please rebase on master, make the tests pass and create a new PR. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
The utility function
tryDecodeURIComponent
may be better placed in a different file. This uses the same strategy and implementation found in Angular 1.x. Lemme know if any refactoring or moving around is needed.closes #4824