A
A
Alexander2018-12-20 14:31:24
Vue.js
Alexander, 2018-12-20 14:31:24

How to draw several components in a row (the number depends on the entered number)?

Hello! Suppose I received some text from the server with Ajax and inserted it into the button:
( <v-btn>{{text}}</v-btn>). The button is in a child component.
Next, I want App.vue to render not one of these components, but several (well, that is, the analogy of any online stores, where I entered a word in the search and 10 product cards were rendered)
Help me figure it out, thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-12-20
@Dgacarda

v-for="i in num"where num is your number

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question