I have a data binding which contains the following string:
bc-men,bc-men-fashion,bc-men-underwear
I would like to have an input field in which I could add "bc-some-category" and afterwards click "Add" and it would be added to the end of the list with a ,(comma) in front.
My markup looks like the following:
<div class="js-referencing-categories">{{ product.refrencing_category_ids }}</div>
<input class="" required type="text" name="fname">
<button class="" v-on:click="product.refrencing_category_ids.add.value">
Add
</button>
What would I need to do in order to make that happen, I dont seem to find any documentation on exactly that in the vueJS guide.