Skip to content

Commit f7dbde1

Browse files
committed
clarify behavior of vue.set
1 parent 6bb4e28 commit f7dbde1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/api/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ type: api
255255

256256
- **Usage:**
257257

258-
Set a property on an object. If the object is reactive, ensure the property is created as a reactive property and trigger view updates. This is primarily used to get around the limitation that Vue cannot detect property additions.
258+
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'`).
259259

260260
<p class="tip">The target object cannot be a Vue instance, or the root data object of a Vue instance.</p>
261261

0 commit comments

Comments
 (0)