Answer the question
In order to leave comments, you need to log in
How to dynamically add a component in vue?
Let's say there is a component, let's call it MyModal. It has a method, let's say "getData (url)", which sends an asynchronous request, receives something and then displays something inside itself.
If a string has arrived, everything is clear, everything is simple. But what if it's a component? How to cram into it, say
<vue-form-generator :schema="schema" :model="model" :options="formOptions"></vue-form-generator>
Well, do not immediately create all the options for the components that can be there through v-if? Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question