Answer the question
In order to leave comments, you need to log in
How to get rid of duplicate data in vue method?
Hi there is a component
<div class="form__select_wrapper">
<div class="form__select_checkbox" v-for="(item, i) in stepOneTitle" :key="item">
<label @click="changeType(item, i)">
<input class="form__checkbox" type="checkbox">
<span class="form__custom_checkbox"></span>
<span class="form__checkbox_text">{{ item }}</span>
</label>
</div>
</div>
changeType(item, i) {
console.log(item)
this.$emit('changeType', item);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question