Extremely helpful video, thanks for explanation! I watched it because I'm pushed by community and forced to learn yet again something new instead of being productive and work on my tasks. Everything was achievable with Options API (O), and I still see no reasonable tradeoff to spent time learning something new, which doesn't really help. You are showing a perfectly organized code of (O), but representing it like it's not organized at all. There is a very high chance that you started to work with Vue.js 2 (O) because of how easy and nicely organized it was back then, now it's a big mess with those C api...
Nope! One of the beauties of the setup method (including script setup) is that everything you export is available to each other at runtime, regardless of position. See this example: bit.ly/3sLmbhF
Love the way of your teaching, everything is clear, I came from the Vue option API and want to switch to the setup API. I was struggling to search real example and your video came and solved my problem. I am also tutoring Laravel and Vuejs on my channel www.youtube.com/@LaravelLover
Check out the source for this video on GitHub: github.com/aschmelyun/video-vue-converting-composition-api
This real-life example is excellent also for those who are just learning Vue. Any interaction with Laravel would be great too.
Fantastic explanation. Thank you!
Extremely helpful video, thanks for explanation!
I watched it because I'm pushed by community and forced to learn yet again something new instead of being productive and work on my tasks.
Everything was achievable with Options API (O), and I still see no reasonable tradeoff to spent time learning something new, which doesn't really help.
You are showing a perfectly organized code of (O), but representing it like it's not organized at all. There is a very high chance that you started to work with Vue.js 2 (O) because of how easy and nicely organized it was back then, now it's a big mess with those C api...
13:34 what if I need to use user property inside totalCost computed property above? do I need to move totalCost below the user?
Nope! One of the beauties of the setup method (including script setup) is that everything you export is available to each other at runtime, regardless of position.
See this example: bit.ly/3sLmbhF
Nice. Thanks Andrew.
Great job 👏
Hi, may i know how can use this.$set inside vue composition api?
👏👏👏
helpful, thank you
Is a very good example! Can you do any video using Vuex and composition API? Thank you!
Sure thing! I’ll add that to my list of ideas
Useful, thank you !
Composition API well understood thanks ❤️
I'm glad you understand it now!
Can you please make a video about life-cycle hooks?
it's very useful example thank you !
Thanks, glad you liked it!
please make a video about testing vue components with jest or cypress
This is on my to-do list and I will have a video for it in a few weeks!
Didn't need to import defineProps
Love the way of your teaching, everything is clear, I came from the Vue option API and want to switch to the setup API.
I was struggling to search real example and your video came and solved my problem.
I am also tutoring Laravel and Vuejs on my channel www.youtube.com/@LaravelLover