vendredi 23 octobre 2015

EmberJS Passing Multiple IDs as Query params

I have a grid from which user can select multiple rows (say list grid). Now on select of rows by the user, I want to pass the ids of selected rows (selectedRow.id) to my router and then route to different screen (which would display selected row details).

Actually I want to make an API call passing the selected ids to get response & then want to decide which screen to display (based on one of the params of API response) i.e.

Based on response.someParam ==> Direct to Screen1 OR Screen2

How do I pass these IDs as query param ?

/decide?id1=123&id2=456

I have shown above as id1, id2 just as example for 2 rows, but not sure if this would work since the user can select n number of rows.

I am open to any kind of implementation apart from query params as well (since it is possible that the user can select large no of rows...so not sure if query param would be best)




Aucun commentaire:

Enregistrer un commentaire