@@ -252,7 +252,7 @@ We might want to replace the slot to customize it on parent component:
252
252
``` html
253
253
<todo-list >
254
254
<i class =" fas fa-check" ></i >
255
- <span class =" green" >{{ item }}<span >
255
+ <span class =" green" >{{ item }}</ span >
256
256
</todo-list >
257
257
```
258
258
@@ -279,7 +279,7 @@ Attributes bound to a `<slot>` element are called **slot props**. Now, in the pa
279
279
</todo-list >
280
280
```
281
281
282
- <img src =" /images/scoped-slot.png " width =" 611 " height =" auto " style =" display : block ; margin : 0 auto ; max-width : 100% ;" loading =" lazy " alt =" Scoped slot diagram " >
282
+ <img src =" /images/scoped-slot.png " width =" 611 " height =" auto " style =" display : block ; margin : 0 auto ; max-width : 100% ;" loading =" lazy " alt =" Scoped slot diagram " >
283
283
284
284
In this example, we've chosen to name the object containing all our slot props ` slotProps ` , but you can use any name you like.
285
285
@@ -348,7 +348,7 @@ That means the value of `v-slot` can actually accept any valid JavaScript expres
348
348
``` html
349
349
<todo-list v-slot =" { item }" >
350
350
<i class =" fas fa-check" ></i >
351
- <span class =" green" >{{ item }}<span >
351
+ <span class =" green" >{{ item }}</ span >
352
352
</todo-list >
353
353
```
354
354
@@ -366,7 +366,7 @@ You can even define fallbacks, to be used in case a slot prop is undefined:
366
366
``` html
367
367
<todo-list v-slot =" { item = 'Placeholder' }" >
368
368
<i class =" fas fa-check" ></i >
369
- <span class =" green" >{{ item }}<span >
369
+ <span class =" green" >{{ item }}</ span >
370
370
</todo-list >
371
371
```
372
372
@@ -410,7 +410,7 @@ However, just as with other directives, the shorthand is only available when an
410
410
411
411
<todo-list # =" { item }" >
412
412
<i class =" fas fa-check" ></i >
413
- <span class =" green" >{{ item }}<span >
413
+ <span class =" green" >{{ item }}</ span >
414
414
</todo-list >
415
415
```
416
416
@@ -419,6 +419,6 @@ Instead, you must always specify the name of the slot if you wish to use the sho
419
419
``` html
420
420
<todo-list #default =" { item }" >
421
421
<i class =" fas fa-check" ></i >
422
- <span class =" green" >{{ item }}<span >
422
+ <span class =" green" >{{ item }}</ span >
423
423
</todo-list >
424
424
```
0 commit comments