mercredi 16 mars 2016

Ember. Keep selections from dropdown menu when user refreshes website

I have a dropdown menu in an ember component. When the user selects an option, the component sends an action to the route, and the route changes an attribute in a controller and makes a transitionToRoute to a different url.

Example:

rootpath= www.example.com

User selects candy. Url => http://ift.tt/1PbHA5b

After candy,User selects kitkat. => http://ift.tt/1UfFzg9.

If the user refreshes the website or shares the url, the dropdown menu appears unselected. I know that using query params fixes this, but I don't want to use query params.

Any idea how can I do this? Thanks!




Aucun commentaire:

Enregistrer un commentaire