0👍
There are multiple ways to add a reactive property.
Here’s one way, with Vue.set
const id = '...'
const product = products.order_products.find(p => p.inventory_id === id)
Vue.set(product, 'scanned', true)
- [Vuejs]-How to deploy vue-codeigniter separated logic app on shared hosting?
- [Vuejs]-JavaScript can we carry what should be inside then() into method with parameters and call it
Source:stackexchange.com