Migrating from Vue 2 to Svelte
escape.tech
Migrating from Vue 2 to Svelte
1–10 of 289 posts
Re: Migrating from Vue 2 to Svelte
#2Re: Migrating from Vue 2 to Svelte
#3- Typed component emits: https://vuejs.org/guide/typescript/composition-api.html#typi...
- Typing event handlers: https://vuejs.org/guide/typescript/composition-api.html#typi...
Re: Migrating from Vue 2 to Svelte
#4Re: Migrating from Vue 2 to Svelte
#5Migrating from svelte to when
Re: Migrating from Vue 2 to Svelte
#6Re global enums - I'm not sure what the author means about global enums - anything imported into your Vue file can be used in the ``.
Re styles - Style is automatically scoped in Vue SFC files, too - I believe it was the first component framework to do this.
This article and migration seems not very thoroughly researched - seems the author just wants a reason to rewrite the front-end.
Re: Migrating from Vue 2 to Svelte
#7Re: Migrating from Vue 2 to Svelte
#8Re events - You can type events in Vue with `defineEmits`: https://vuejs.org/api/sfc-script-setup.html#defineprops-defi... Re global enums - I'm not sure what the author means about global enums - anything imported into your Vue file can be used in the ` `. Re styles - Style is automatically scoped in Vue SFC files, too - I believe it was the first component framework to do this. This article and migration seems not…
Re: Migrating from Vue 2 to Svelte
#9Re: Migrating from Vue 2 to Svelte
#10Still don't understand why people prefer magic templated front-end frameworks. Reading non-standard HTML just sucks. What even is "$:" or why does Vue require non-standard javascript ref("") objects...
[1]https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...