[Vuejs]-How to use a Vue VM variable in a component?

0👍

You need to define your template as follows:

<numbers :numbers="numbers"></numbers>

which is a short-hand syntax for:

<numbers v-bind:numbers="numbers"></numbers>

This ensures that the numbers object is passed as props instead of the string “numbers”

Leave a comment