Right now I have an array with multiple companies.
Like this but only 1:
[{
"id": 4,
"name": "Lorem",
"description": "Lorem ipsum"
}]
I loop through the companies and pass the company with the delete function.
<a @click="deleteCompany(company)"><i class="fa fa-trash" aria-hidden="true"></i></a>
deleteCompany(company) {
Vue.delete(company, 'name');
}
As of right now it only deletes the name.. but how do I delete the whole object?