Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Vue 3 script setup props emits

<script setup>
const props = defineProps({
  foo: String
})

const emit = defineEmits(['change', 'delete'])
// setup code
</script>
1
Source by v3.vuejs.org #
 
PREVIOUS NEXT
Tagged: #Vue #script #setup #props #emits
ADD COMMENT
Topic
Name
3+6 =