I am facing an issue with duplicate json data and need help removing the duplicates based on the id_cms_users
. How can I display the cleaned data in a table?
I found a method on https://codepen.io/roverv/pen/YQvdya but it only displays data from one column.
<tr v-for="coba in ayam ">
<td>{{ coba.id_cms_users }}</td>
<td>{{ coba.cms_users_name }}</td>
<td>{{ coba.berminat }}</td>
</tr>
var app = new Vue({
el: "#app",
data: function () {
return {
ayam: [{
id: 62,
id_cms_users: 7,
cms_users_name: "Imam Prasetyo",
berminat: 1
},
{
id: 61,
id_cms_users: 7,
cms_users_name: "Imam Prasetyo",
berminat: 1
},
{
id: 56,
id_cms_users: 20,
cms_users_name: "Nanda Rusfikri",
berminat: 2
}
]
};
},
});