A few days ago I remembered a cool feature that was part of the RFCs that made it into Vue 3 and the composition API final releases when Evan You t...
For further actions, you may consider blocking this person and/or reporting abuse
Hi there, I'm getting undefined for emit as well as props when trying to import them with
<script setup="props, {emit}">
as proposed. Any hint to what could be wrong? Project was created using@vitejs/app <project-name>
... thanks!You can use
defineProps
,defineEmit
and/ordefineContext
twitter.com/watchmejizz/status/137...
Maybe update post @alvarosaburido ?
Hi dear, thanks for the amazing article, I had a problem with accessing "this" keyword properties in this new setup as it is undefined,
ex: in my previous projects i could write this.$vuetify.themes.colors.primary,
but now i can't as "this" keyword is undefined,
how to access $vuetify?
Hi there, thanks for writing. So sfc works along with the composition API, is a sugar syntax for the
setup
function so you will be not able to access $vuetify through this.Check if Vuetify already supports vue 3 and composition API vuetifyjs.com/en/introduction/road...
This syntax makes every component so clear to read, I love it!
Hey, I had no idea about that feature! Where's the official documentation about it? I dont see it mentioned in here: v3.vuejs.org/guide/composition-api...
Here it is mentioned as a Notable New Feature
howβs your IDE/plugin setup for the way of creating components? I tried with code+vetur and itβs just complaining </p>
I found an answer myself actually.
Apparently volar works?
github.com/vuejs/vitepress/pull/13...
Great little intro documents, we need more visibility into the SFC style</p>