Skip to content

Commit 4a333dd

Browse files
fix: wrap unintended template syntax with v-pre (#799)
1 parent 3f699df commit 4a333dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/component-slots.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ app.component('todo-list', {
247247
})
248248
```
249249

250-
We might want to replace the `{{ item }}` with a `<slot>` to customize it on parent component:
250+
We might want to replace the <span v-pre>`{{ item }}`</span> with a `<slot>` to customize it on parent component:
251251

252252
```html
253253
<todo-list>
@@ -320,7 +320,7 @@ Note that the abbreviated syntax for default slot **cannot** be mixed with named
320320
<todo-list v-slot="slotProps">
321321
<i class="fas fa-check"></i>
322322
<span class="green">{{ slotProps.item }}</span>
323-
323+
324324
<template v-slot:other="otherSlotProps">
325325
slotProps is NOT available here
326326
</template>

0 commit comments

Comments
 (0)