I am tyring to use split() in <option> tag. the AvaFac is an array continaing Name and Code like ["XXX^101", "YYY^102"]
The split() as show in the <option> tag throws error. Is there an another way to achieve this without using separate array to save the code.
<option v-for="fieldRows in avaFac" :value=fieldRows.split('^')[1]>
<span class="custom__tag">
<span>{{fieldRows}}</span>
</span>
</option>