Hello all, wondering if I could get some help on structuring something in my app.
I have a component that lists a bunch of items, and I would like to be able to open a modal for each. In Vue 1 I had a single modal component and would open it by broadcasting/dispatching an event and pass the item through to the modal.
However in Vue 2 I don’t have broadcasting/dispatching available, and I’m using the router. I did look into named views, but wasn’t sure if that’s the direction to go.
One other factor: I would like to be able to navigate to a url and have the modal open automatically for specific items, which means I either need to pass a hash or query string.
Can someone give some advice on how I should proceed? Thank you