how to render button vue 2 @click ?
how to render button vue 2 @click ?
![rulymufid](https://secure.gravatar.com/avatar/437565448445b003e6b7735d42e5ba40/?default=https%3A%2F%2Fvanillicon.com%2F437565448445b003e6b7735d42e5ba40_200.png&rating=g&size=120)
hellow ,
i am trying to make button for every row using @click on vue 2 , but function doesn't work.
this my code :
{ data: "id", "render": function(data){
return '<button @click="deleteProduct(5)"><i class="fa fa-trash red"></i> Delete</button>';
}
}
how to render button with vue 2 @click ?