Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

what is slot in vue.js

// app.vue
<template>
  <current-user>
    <template v-slot:default="slotProps">{{ slotProps.user.firstName }}</template>    
  </current-user>
</template>
Source by www.smashingmagazine.com #
 
PREVIOUS NEXT
Tagged: #slot
ADD COMMENT
Topic
Name
9+6 =