Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AmineBHD's avatar

import modals dynamically

I'm working on VueJs application and Laravel for the backend, my frontend application is receiving a JSON response contain the modal name, that should be open like that :

{

modalName: 'login'

}

I would like to load the modalName dynamically, i don't want to register all of them in the beginning is there any way to load my modals dynamically I'm using also Vuex

0 likes
0 replies

Please or to participate in this conversation.