How to filter data for rest API based on drop downs
I asked a similar question earlier for which I got a lot of help: How to
update model with new records in EmberJS
With that question I'm able to filter the data by making different
templates for each filter item.
But I'd like to filter the data by selecting something from the drop down
and then typing something in the text box. So if starts was selected from
the drop down and 4 was entered in the text box and submit was clicked
then the request would be made to find({stars: "4"})
Is there a way to do this? I trying to at least create the filter terms
based on the drop down selection and input text box but jquery doesn't
seem to be taking affect. I guess because the submit element is inside the
template.
Here is the jsBin for this: http://jsbin.com/OcAyoYo/18/edit
No comments:
Post a Comment