Skip to content

Commit e421180

Browse files
authored
Fix example typo
1 parent 8cfacc7 commit e421180

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/v2/guide/components-slots.md

+2-2
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)