vendredi 29 mai 2015

Populate a select box with results generated from another select box

Another new-to-ember question - I have a component that contains a select (call it type) object. When a type is selected, I want to take the selected type, make a REST call using the selected type to return records, and populate a second select object in another component with the returned records. There are too many subtypes to get during initialization (the type list is retrieved during initialization). The process currently is: 1) select value type is chosen 2) type chosen is sent to parent route and set there 3) value chosen is used by REST service to get list of subtypes. All this works now, but I have been unable to set the the component select to the subtypes retrieved by the REST service. Been beating my head against this for a while now, so any help would be appreciated. Thanks.




Aucun commentaire:

Enregistrer un commentaire