Skip to content

Commit a9cfc7e

Browse files
authored
Update scoped slot suggestion template
Update template example to use Vue 2.60+ syntax. See https://vuejs.org/v2/guide/components-slots.html#Scoped-Slots
1 parent 579a48b commit a9cfc7e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,10 @@ for the suggestion `list-item`'s
152152
>
153153
<!-- htmlText is bound to the matched text derived from the serializer function -->
154154
<!-- data is bound to the matching array element in the data prop -->
155-
<template slot="suggestion" slot-scope="{ data, htmlText }">
156-
<span v-html="htmlText"></span>&nbsp;<small>{{ data.code }}</small>
155+
<template v-slot:suggestion="slotProp">
156+
<span v-html="slotProp.htmlText"></span>&nbsp;<small>{{ slotProp.data.code }}</small>
157157
</template>
158+
158159
</vue-bootstrap-typeahead>
159160
```
160161

0 commit comments

Comments
 (0)