I am new to Vue2.js, I am trying to open modal box and show content of an array.
<tr v-for="(sku_req,itemObjKey) in sku_requests" :key="sku_req.id">
<td><i class="ft-eye font-medium-3 mr-2" data-toggle="modal" data-target="#showskudetails" v-on:click="show_sku_object(itemObjKey)"></i></td>
</tr>
which is open modal box perfectly, but its not rendering vue variable values
Modal Box:
<div class="modal fade text-left" id="showskudetails" tabindex="-1" role="dialog" aria-labelledby="myModalLabel21" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel21">SKU Gen Request</h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-4">Seller</div>
<div class="col-md-8">@{{selected_sku_req.seller_name}}</div>
</div>
Now this Modal Box when opening , its displaying like this :
Seller @{{selected_sku_req.seller_name}}
Basically selected_sku_req.seller_name is not loading
Vue Function
show_sku_object: function(itemObjKey){
var self = this;
self.selected_sku_req = self.sku_requests[itemObjKey];
}
Any help would be appreciated!