Hi Alexandru Thanks for you post!
In vue-2 I set component name like this:
<script> const name = 'App'; export default { name, }; </script>
How can i set component name with 'vue-3 setup syntax?
You can still export default the component:
export default
<script setup="props"> // ... other logic here export default { name: 'ComponentName', }; </script>
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi Alexandru
Thanks for you post!
In vue-2 I set component name like this:
How can i set component name with 'vue-3 setup syntax?
You can still
export default
the component: