P
P
Pavel Mikhalovsky2018-02-21 12:42:50
JavaScript
Pavel Mikhalovsky, 2018-02-21 12:42:50

How to pass an array to a component in vue.js?

I'm making a virtual laboratory and using it in vue.js (since there are several experiments, and vue.js will help me with this) and I want to make a component that will be responsible for displaying the graph. I'm going to draw charts using chart js and in order for the chart to be drawn, I need to pass an array of values.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
D3lphi, 2018-02-21
@pavel9609

<example :arr="['first, 'second', 'third']"></example>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question