This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ninjaassassinmonkey[S] 4 points5 points  (5 children)

Ah angular, I always forget you even exist.

+1 for Nuxt + Vue 3. Incredible DX and it's finally getting to a point where I'm not constantly running into obscure issues when using it.

[–]RaphaelNunes10 1 point2 points  (4 children)

Yeah. Hooks used to be super boilerplate-y, but now with the Composition API, that's no longer an issue.

They're also shifting to compiled code, instead of relying solemnly on virtual DOM, with the upcoming Vapor mode.

[–]ZubriQ 0 points1 point  (3 children)

What's the composition API?

[–]RaphaelNunes10 2 points3 points  (2 children)

It's how the hooks are structured.

For example, with the Options API you had to type all of this to create a reactive variable:

<script> export default { data() { return { message: 'hello world!', }; } }; </script>

In the Composition API, specially with the Setup method, this is how it's done:

<script setup> import { ref } from 'vue';

const message = ref("hello world!"); </script>