[Vuejs]-Vue js – How to store Vue js value to variable in laravel blade template?

0👍

One way of doing it is to use a computed property.

eg. something like this in your component:

computed: {
    prices: function () {
        return this.detail.price.split(',');
    }
}

Then something like this in your template:

<select name="price">
    <option v-for="price in prices" v-text="price"></option>
<select>

Leave a comment