Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4826

Binding query params that are arrays

$
0
0

@midget2000x wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4826

Trending Articles