0👍
A working JSFiddle might be helpful here, but I’m guessing that you could fix it by using:
demo.$set("items", demo.items.filter(function (item) {
return item.childMsg.match(/Hello/)
})
- [Vuejs]-How would a WebTorrent VueJS component could be build?
- [Vuejs]-“blocked by CORS policy” error with https://streamlabs.com/api/v1.0 endpoint
0👍
You can use this function to remove observable proto from objects and arrays.
const clone = (value) => {
if (!value) return value;
const isObject = (typeof value === 'object');
const isArray = Array.isArray(value);
if (!isObject && !isArray) return value;
// Removing reference of Array of values
if (isArray) return [...value.map(val => clone(val))];
if (isObject) return { ...value };
return value;
};
- [Vuejs]-Trying to get property of non-object on laravel with axios
- [Vuejs]-Can you import a library from one repo into a web app in another repo using Webpack?
Source:stackexchange.com