How to replace a string with a component (vue)
问题 I have strings that contains ### and I am replacing with array values. Now I want to use them with a component, I created the component and it works but I don't know how to use it in the strings. I don't want to wrap them manually because I don't know how the strings will be, it can have several ### . If it has 2 ### , options will have 2 subArrays. What is the better way to do it? Code: https://jsfiddle.net/tsobh4nu/ Vue.component('opt', { template: `<label> <span class="bold" v-for="(str