Skip to content

Commit 69b158d

Browse files
authored
Merge pull request #49 from 14nrv/dev
docs(readme): update usage section with scoped slot
2 parents 2bf8a8b + 8d94a5a commit 69b158d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ Object.keys(rules).forEach(rule => {
7878
:btnSubmit="{value: 'Submit'}",
7979
:formFields="jsonFields",
8080
formName="userProfil")
81-
div(slot="slotNameAddedInJsonFields")
82-
p Your slot content
81+
template(#slotNameAddedInJsonFields="{ prop }")
82+
p Your slot content and {{ prop }}
8383
</template>
8484

8585
<script>

0 commit comments

Comments
 (0)