@@ -274,7 +274,7 @@ Attributes bound to a `<slot>` element are called **slot props**. Now, in the pa
274
274
<todo-list >
275
275
<template v-slot:default =" slotProps" >
276
276
<i class =" fas fa-check" ></i >
277
- <span class =" green" >{{ slotProps.item }}<span >
277
+ <span class =" green" >{{ slotProps.item }}</ span >
278
278
</template >
279
279
</todo-list >
280
280
```
@@ -290,7 +290,7 @@ In cases like above, when _only_ the default slot is provided content, the compo
290
290
``` html
291
291
<todo-list v-slot:default =" slotProps" >
292
292
<i class =" fas fa-check" ></i >
293
- <span class =" green" >{{ slotProps.item }}<span >
293
+ <span class =" green" >{{ slotProps.item }}</ span >
294
294
</todo-list >
295
295
```
296
296
@@ -299,7 +299,7 @@ This can be shortened even further. Just as non-specified content is assumed to
299
299
``` html
300
300
<todo-list v-slot =" slotProps" >
301
301
<i class =" fas fa-check" ></i >
302
- <span class =" green" >{{ slotProps.item }}<span >
302
+ <span class =" green" >{{ slotProps.item }}</ span >
303
303
</todo-list >
304
304
```
305
305
@@ -310,7 +310,7 @@ Note that the abbreviated syntax for default slot **cannot** be mixed with named
310
310
<todo-list v-slot =" slotProps" >
311
311
<todo-list v-slot:default =" slotProps" >
312
312
<i class =" fas fa-check" ></i >
313
- <span class =" green" >{{ slotProps.item }}<span >
313
+ <span class =" green" >{{ slotProps.item }}</ span >
314
314
</todo-list >
315
315
<template v-slot:other =" otherSlotProps" >
316
316
slotProps is NOT available here
@@ -324,7 +324,7 @@ Whenever there are multiple slots, use the full `<template>` based syntax for _a
324
324
<todo-list >
325
325
<template v-slot:default =" slotProps" >
326
326
<i class =" fas fa-check" ></i >
327
- <span class =" green" >{{ slotProps.item }}<span >
327
+ <span class =" green" >{{ slotProps.item }}</ span >
328
328
</template >
329
329
330
330
<template v-slot:other =" otherSlotProps" >
@@ -357,7 +357,7 @@ This can make the template much cleaner, especially when the slot provides many
357
357
``` html
358
358
<todo-list v-slot =" { item: todo }" >
359
359
<i class =" fas fa-check" ></i >
360
- <span class =" green" >{{ todo }}<span >
360
+ <span class =" green" >{{ todo }}</ span >
361
361
</todo-list >
362
362
```
363
363
0 commit comments