I have been doing a lot of Vue.js in the last 6 months and I need to say Vue is awesome.
I am coming from “React ❤️ world” but with the release of...
For further actions, you may consider blocking this person and/or reporting abuse
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:What if I want use imported components in SFC?
Hi Denni,
A good question, here is an example:
Hi Alexandru,
thank you!
What if we want pass arguments on setup?
If you ask how to use
emit
and other args you pass tosetup()
function here is an example:good thats what I wanted to know, thanks
It looks much more cleaner, gotta give a try
What about defining emits used in the template with $emit('eventName')? I've found the function defineEmit(), but can't figure out how to use it...
If anyone else is stuck on this too, I eventually found the answer here: github.com/vuejs/rfcs/pull/227#iss...
what if I want to use async/await?