JSFiddle - React, Tailwind, and code Playground
HTML
<div id="app">
<ul>
<li v-for="item in $options.myArray">{{ item }}</li>
</ul>
</div>
JavaScript
new Vue({
el: '#app',
data: {
someReactiveData: [1, 2, 3]
},
//custom option named myArray
myArray: null,
created(){
//access the custom option using $options
this.$options.myArray = ["value 1", "value 2"];
},
})