How to use modal in different pages?
I have some background in app development although I am still NOT an expert. I would like to write my Quasar app containing independent pages as Vue components (I know how to do it) with ability to display q-dialog with some content. There will be more than one dialog.
The problem is: I don’t know how to use the same q-dialog (with the same content) in different pages.
s.molinari last edited by
Create your own component wrapping QDialog (with all the things you need, as you need them, including how content is injected or used) and use that component wherever you need it with the
componentsoption of Vue. https://012.vuejs.org/api/options.html#components