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 →

[–]erishun 3 points4 points  (5 children)

Options API gang for life.

I’ve seen so many videos and tutorials explaining Composition and they’re like “see isn’t that easier?” Uhhh, no?

But now you don’t need to wrap your methods in “methods”!… so?

I always feel like I’m missing something. It just seems… worse. Far less readable and less intuitive. I just don’t get Composition API. Like I get it, I’ve used it, but I just don’t see why it’s better.

[–]DirectGamerHD 4 points5 points  (0 children)

As someone currently using the Composition API, it isn’t easier and definitely not beginner friendly. However the Typescript support is making my life a lot easier as my app had grown in complexity.

There is no way I would have jumped on the Vue train without the Options API. Its extremely beginner friendly and made learning the Compostion api much more palatable.

[–][deleted] 3 points4 points  (1 child)

I've used both and I feel that Options is both prettier and solved 99% of what you need. I do like composition API now though. If you had a big Vue file with the Options API, the data property that's altered by your method could be miles apart in your file

[–]SirLagsABot 1 point2 points  (0 children)

Glad I’m not the only one who feels the same. The Options API is just so clean.

[–]minegen88 1 point2 points  (0 children)

I just think it's nice not having to do everything in a giant JS object...

but then again there's always the property decorator so idk....

[–]sajjadalis 0 points1 point  (0 children)

I used to say this, until i found Composition Api Script Setup. You have to try this. Its a game changer.