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

Multivalue parameter in $stateParams #405

Closed
gnom1gnom opened this issue Sep 11, 2013 · 1 comment
Closed

Multivalue parameter in $stateParams #405

gnom1gnom opened this issue Sep 11, 2013 · 1 comment

Comments

@gnom1gnom
Copy link

Hello,

I have a problem with multiple value parameters in $stateParams.
I configured my state as follows:

$stateProvider
    .state('search', {
      url: '/productSearch?category_id&limit&tags&q',

When I go to http://localhost:9000/#/productSearch?tags=279&tags=280, the tags=279 is removed from address and I get only tags=280 in the $stateParams.

I want to stress that tags=279&tags=280 is a standard angular way to pass multiple value parameters to $http, so please don't tell me I shouldn't use such syntax. BTW the &tags=279,280 syntax of the

$location.search({tags: [279, 280]})

doesn't work as well.

Thank you in advance for answering!

@nateabele
Copy link
Contributor

Duplicate, see #373.

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

No branches or pull requests

2 participants