Skip to content

Commit 6642187

Browse files
authored
docs: update v-text directive details for clarity (#2676)
1 parent dbabe2c commit 6642187

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 @@
88

99
- **詳細**
1010

11-
`v-text` は要素の [textContent](https://developer.mozilla.org/ja/docs/Web/API/Node/textContent) プロパティをセットする動作なので、要素内の既存のコンテンツはすべて上書きされます。`textContent` の一部を更新する必要がある場合は、代わりに[マスタッシュ展開](/guide/essentials/template-syntax#text-interpolation)を使用します。
11+
`v-text` は要素の [textContent](https://developer.mozilla.org/ja/docs/Web/API/Node/textContent) プロパティをセットする動作なので、要素内の既存のコンテンツはすべて上書きされます。`textContent` の一部だけを更新する必要がある場合は、代わりに[マスタッシュ展開](/guide/essentials/template-syntax#text-interpolation)を使用します (例: <span v-pre>`<span>これは保持して {{dynamicPortion}} を更新</span>`</span>)
1212

1313
- ****
1414

0 commit comments

Comments
 (0)