F
F
fman22021-11-24 22:45:23
Vue.js
fman2, 2021-11-24 22:45:23

Vue3 and dynamic component layout how to implement?

Hello.
I've been scratching my head for hours now.
There is a Demo component and the template of this component is pulled from the server using axios.
This template has its own components.
How to render such a dynamic component on the page?
Those. I somehow need to programmatically create a component and render it, but how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mors Clamor, 2021-11-25
@66demon666

Try to pull the layout BEFORE creating an instance of the application and insert it into the script and in the component specify the path to this script in the template

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question