DEV Community

Discussion on: Feature: Vue 3 script setup

Collapse
 
ghalex profile image
Alexandru Ghiura

If you ask how to use emit and other args you pass to setup() function here is an example:

<script setup="props, { emit }">
// call emit() here
</script>
Enter fullscreen mode Exit fullscreen mode
Collapse
 
bairrada97 profile image
bairrada97

good thats what I wanted to know, thanks