M
M
Maxim Timofeev2018-10-15 19:06:43
Vue.js
Maxim Timofeev, 2018-10-15 19:06:43

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?
There is a feeling that I missed something in the base docks, but I can’t find what.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-10-15
@webinar

There is a feeling that I missed something in the base docks

Maybe is ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question