[Vuejs]-Vuejs nested components, templates, and using Modals

0👍

The way I sometimes handle this is to have there only be one modal component that you can pass the task data to when the task is clicked. Then the modal component opens and has all the edit/delete functions in one place to handle whatever task has been passed to it.

Upon saving, you can $dispatch the results to the parent vue instance and $broadcast back to the task that is being updated.

Leave a comment