DEV Community

Discussion on: Feature: Vue 3 script setup

Collapse
bairrada97 profile image
bairrada97

What if we want pass arguments on setup?

Collapse
ghalex profile image
Alexandru Ghiura Author

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