Skip to content

Commit f828958

Browse files
authored
docs: update v-text directive details for clarity (#3303)
* docs: update v-text directive details for clarity Clarified usage of v-text directive regarding textContent updates. * Update explanation * Fix formatting in v-text documentation example
1 parent 38eaa3f commit f828958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/built-in-directives.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Update the element's text content.
88

99
- **Details**
1010

11-
`v-text` works by setting the element's [textContent](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) property, so it will overwrite any existing content inside the element. If you need to update the part of `textContent`, you should use [mustache interpolations](/guide/essentials/template-syntax#text-interpolation) instead.
11+
`v-text` works by setting the element's [textContent](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) property, so it will overwrite any existing content inside the element. If you need to update only part of the `textContent`, you should use [mustache interpolations](/guide/essentials/template-syntax#text-interpolation) instead (ie. <span v-pre>`<span>Keep this but update a {{dynamicPortion}}</span>`</span>).
1212

1313
- **Example**
1414

0 commit comments

Comments
 (0)