Ember select two way sync with queryparams

Hi I am trying to make a single dropdown. This drop down sorts stuff. The content passed to Ember.select is not an plain array but array on object to handle sortAscending by giving option like( Price : Lowest to Highest) or (Size : smallest to Biggest) in drop down.

How can I achieve two way sync between Ember.select and queryParams.

  1. On selecting a value form dropdown query params should get updated.
  2. On copy pasting url. appropriate options should be selected.

I have posted a question in stackoverflow

1 Like