vendredi 26 juin 2015

Showing 'item' route on Ember.js modal

How would you achieve something like Pinterest does with there modal? You can have the same 'pin' modal over multiple different urls. e.g. index, user profiles, categories and so on. The reason is that I want to have the 'item' modal in the URL is so that people can bookmark it or share the link, that gets them to the dedicated 'item' route that is shareable.

Would using beforeModel be ideal? I'm a bit lost as to how to use this type of UI.




Aucun commentaire:

Enregistrer un commentaire