- Arguments:
{Object | Array} target
{string | number} key
{any} value
- Returns: the set value.
- Usage:Adds a property to a reactive object, ensuring the new property is also reactive, so triggers view updates. This must be used to add new properties to reactive objects, as Vue cannot detect normal property additions (e.g.
this.myObject.newProperty = 'hi'
).The target object cannot be a Vue instance, or the root data object of a Vue instance.
No comments:
Post a Comment