How would I pass two of the same parameters to ui-sref?
productSearch({'d': 53, 'b': 20, 'b': 19, 's': 6, 'b': 19})
the 'b' param just uses the latter value of 19.
How would I include two b values to go to this url:
http://example.com/search?d=53&s=6&b=20&b=19
Thank you very much!
It's a matter of syntax. All languages I know which implement hash, or inline object notation don't support duplicate keys. It would not event make sense to do it. How are gonna access the params later? params.b
and.... params.b
.
It wouldn't make sense at the url level either. Query parsing programs will most likely take the value of the last b
. I think this is standard behaviour.
Use an array instead (productSearch({ b: [1,2,3] })
).