Binding query params that are arrays


#1

I’ve been wrestling with getting QPs that are arrays like:

/search?foo[]=ray&foo[]=freakin&foo[]=tiley

to be properly bound to controller property arrays. I think this used to be supported based on what I found on @matchy 's twitter feed

But I tried to copy/update the code and ember no likey. Made a twiddle

Ember doesn’t seem to like when the default value for a property in the controller is an array (screenshot), like:

foo: [‘ray’,‘freakin’,‘tiley’]

if you change it to:

foo: null

It kind of works, but doesn’t update the manipulated array back to the URL as an array, it becomes a string