I'm a bit new to JS and Vue and am not quite sure if I understood the documentation correctly. It says:
Due to the limitations of modern JavaScript (and the abandonment of
Object.observe
), Vue cannot detect property addition or deletion. Since Vue performs the getter/setter conversion process during instance initialization, a property must be present in the data object in order for Vue to convert it and make it reactive.
Does this include normal arrays as well, or do elements in arrays not count as "properties" in JavaScript?
I wish to do state.array.push(data)
to an array. Is this the correct way to do it?