I want to put some of my routes into a modal box. So if a user navigate to posts/3/edit then a modal pops up with a form to edit the post.
I made a modal component. Now I can wrap the form, or any other content to it. In the modal's template there is a close button. If the user clicks it, the component should go up one level (to postst/3 in my example)
Problem: How does the component know the current route of the application?
jsBin: http://ift.tt/1biYMKc
Aucun commentaire:
Enregistrer un commentaire