Skip to content

Commit e06f277

Browse files
slots migration guide, mention change to function more prominently (vuejs#452)
* slots migration guide, mention change to function more prominently see vuejs/core#2045 * Update src/guide/migration/slots-unification.md Co-authored-by: Natalia Tepluhina <[email protected]> Co-authored-by: Natalia Tepluhina <[email protected]>
1 parent e89f5e6 commit e06f277

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/guide/migration/slots-unification.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ And when you need to reference scoped slots programmatically, they are now unifi
5454
this.$scopedSlots.header
5555

5656
// 3.x Syntax
57-
this.$slots.header
57+
this.$slots.header()
5858
```
5959

6060
## Migration Strategy
6161

6262
A majority of the change has already been shipped in 2.6. As a result, the migration can happen in one step:
6363

6464
1. Replace all `this.$scopedSlots` occurrences with `this.$slots` in 3.x.
65+
2. Replace all occurences of `this.$slots.mySlot` with `this.$slots.mySlot()`

0 commit comments

Comments
 (0)