0๐
<a href="" class="btn btn-danger input-sm" data-tooltip="tooltip" data-placement="top" title="Add new" @click.prevent="$emit('remove', index)"><i class="fa fa-minus"></i></a>
props: ['products', 'brands', 'items', 'index'],
<product v-for="(detail, index) in details" :key="index" :index="index" :products="{{ $products }}" :brands="{{ $brands }}" :items="{{ $items }}" @add="addItem" @remove="removeItem">
Source:stackexchange.com