DEV Community

Discussion on: Ionic Modal In Vue JS, Managing Events

Collapse
aaronksaunders profile image
Aaron K Saunders Author

i dont this that is how component based frameworks are meant to work. You should put the contents of the modal in a separate component that can be utilized on different locations in your app

Collapse
ideasdelaboratorio profile image
ideasdelaboratorio

Thanks. I meant the modal component to avoid the import in every component it's called. The content of the modal differs if arrive from one button or link.
Vuejs Event bus can be used in ionic?

Thread Thread
aaronksaunders profile image
Aaron K Saunders Author

yes Ionic just provides web components, all the regular vue stuff is still there