Skip to content

Commit 25c123e

Browse files
Merge pull request #2033 from vuejs/fix-typo
Fix example typo
2 parents 8cfacc7 + e421180 commit 25c123e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v2/guide/components-slots.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,15 +332,15 @@ That means the value of `v-slot` can actually accept any valid JavaScript expres
332332
This can make the template much cleaner, especially when the slot provides many props. It also opens other possibilities, such as renaming props, e.g. `user` to `person`:
333333

334334
``` html
335-
<current-user v-slot="{ user: person }">>
335+
<current-user v-slot="{ user: person }">
336336
{{ person.firstName }}
337337
</current-user>
338338
```
339339

340340
You can even define fallbacks, to be used in case a slot prop is undefined:
341341

342342
``` html
343-
<current-user v-slot="{ user = { firstName: 'Guest' } }">>
343+
<current-user v-slot="{ user = { firstName: 'Guest' } }">
344344
{{ user.firstName }}
345345
</current-user>
346346
```

0 commit comments

Comments
 (0)