Тёмный

Vue 3 Composition API Tutorial #1 - Options API vs Composition API 

Make Apps with Danny
Подписаться 30 тыс.
Просмотров 26 тыс.
50% 1

Опубликовано:

 

29 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 53   
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
Please Like, Share, Subscribe & Comment - it all helps me create more content! 👉 Vue 3 Composition API Course: dannys.link/compositionapi 👉 My Courses: dannys.link/courses
@Imaginativeone_DF
@Imaginativeone_DF 2 года назад
Dude...you're off the charts with your awesomeness.
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
Cheers Doug!
@Mozescodes
@Mozescodes 10 месяцев назад
Group relevant code together you mean make spaghetti code like in React
@antoncherry
@antoncherry 2 года назад
Wow, unexpected) Danny, why Bulma? ))
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
It was the easiest one to install and use in a standard Vue project. It’s not a Bulma course though, I don’t go into detail about Bulma at all.
@antoncherry
@antoncherry 2 года назад
@@MakeAppswithDanny Got it) i'm in love with TailwindCss👍🏻
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
@@antoncherry Cool. Still haven't had a chance to play with Tailwind 👍
@RobertWildling
@RobertWildling Год назад
Hi, Danny! Wondering, how you are doing? Probably busy with family... how is your app going? Do you plan on any new tutorials?
@MakeAppswithDanny
@MakeAppswithDanny Год назад
I'm good cheers, Robert. Fudget 2 has been a full-time job so far, but hopefully when that gets a bit smoother I'll have time to do some videos 👍
@RobertWildling
@RobertWildling Год назад
@@MakeAppswithDanny Great to hear that your app is keeping you busy! Thanks for the quick reply!
@dekebaoe
@dekebaoe 2 года назад
Thank you Danny. Amazing as always. Can't wait for the full course
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
Thanks Basar!
@Alexandr661961
@Alexandr661961 Год назад
Hey Danny, where is new videos?
@MakeAppswithDanny
@MakeAppswithDanny Год назад
Hopefully once I'm done with Fudget 2 (hopefully soon) 👍
@SpaceGuideHub
@SpaceGuideHub Год назад
Where is Danny?
@MakeAppswithDanny
@MakeAppswithDanny Год назад
Hopefully I'll do some videos soon, Яков!
@arslonbekroziboyev5683
@arslonbekroziboyev5683 2 года назад
thank you for the useful information related to vue.js
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
My pleasure, thanks ArlsonBek!
@SpaceGuideHub
@SpaceGuideHub Год назад
I want to be successful like you Danny! I hope, I'll learn from you a lot! Please create course how to create MVP apps and earn like Indie App Developer. Because this is my dream.
@MakeAppswithDanny
@MakeAppswithDanny Год назад
Thanks Яков! I'll think about it!
@dreammanor_ru
@dreammanor_ru 2 года назад
Hi! Thank you for explaining important topics.
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
No worries!
@liamconverse8950
@liamconverse8950 2 года назад
As someone who's just learning Vue now and is working on a Quasar project that was scaffolding without the script setup syntax, it was slightly tricky to figure out how to change all my components to use the script setup "sugar" . On the official Vue docs it does claim it improves performance and is easier to read through though
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
Yeah it took me a whole day to convert my app Fudget 2 to script setup. Definitely worth it though 👍
@ministersport
@ministersport 2 года назад
with what frequency videos will be adding to playlist? thanks for your work
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
Aiming for every Monday, Wednesday & Friday. Next one tomorrow 👍
@truthteachers
@truthteachers 2 года назад
Hi Danny, in an older video i asked this question. I did not include the code because i was testing this video. Weird things are happening. In you code at timestamp you used "counter.value++" to increment the counter. What's odd are: (1) Howcome you could change the value of a "const"? (2) I used "this.counter++ and it still worked but i thought that this "this" should not be used. The script for HomeView.vue: - {{ counter }} + import { defineComponent } from 'vue' import { ref, reactive } from 'vue'; export default { setup() { const counter = ref('20'); const updateCounter = function (type) { if (type === '-') { this.counter--; } else { this.counter++; } }; return { counter, updateCounter, }; }, };
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
I just did some playing around and it seems that this works, but only when using the *setup function* pattern (like in your code) but it does not work when using the *script setup* pattern (which the pattern the Vue team now recommends). I assume the reason it works with the setup function pattern is because, in this context, the *this* keyword refers to the setup() function and since the counter ref is declared at the top level of the setup() function, *this.counter* will refer to it. However, I'm not quite sure why you don't need to do *this.counter.value* - that is strange. Honestly I don't know how to explain this right now, but I'll look into it. Regarding the *const* question, this is explained here: stackoverflow.com/a/23436563
@truthteachers
@truthteachers 2 года назад
@@MakeAppswithDanny Thank you for the reply. The reason i did that code is really i forget to change and as it worked i didnt think of it until i continued the video and when i had to add more code i realised the oddity. Hmmmm... Thank you for the explanation but it has serious implications. When someone change over from setup() to script setup. You are the only trainer who replies comments effectively . Keep up with the good work. Waiting for the full course in composition API. Will in be available in your site or udemy (my preference as i have so many courses in there as library).
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
@@truthteachers it will be on Udemy. Link with my discount will be available on my site 👍
@riyad-appscode
@riyad-appscode 2 года назад
Thanks for Amazing Video
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
Thanks AL! 👍
@yesimhere7285
@yesimhere7285 2 года назад
Any idea when the Udemy course will be available?
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
Hopefully in about 2 or 3 weeks 👍
@yesimhere7285
@yesimhere7285 2 года назад
@@MakeAppswithDanny Thanks! I'm looking forward to it! Love your classes!
@larryweidig2800
@larryweidig2800 2 года назад
Any reason you are using Bulma over Quasar?
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
It was the easiest one to install and use in a standard Vue project created with the Vue build tool (I wanted to stick with Vue build tool projects in the course). But it’s really not a Bulma course at all. We are just using it to make the app look pretty but not going into detail about Bulma. The focus is Vue 3 and composition api. 👍
@larryweidig2800
@larryweidig2800 2 года назад
@@MakeAppswithDanny There is of course a Quasar Vite plugin, but completely get your reasoning for the choices. Love your videos and look forward to purchasing this course when it is available. Keep up the great work!
@alfriansyah9895
@alfriansyah9895 2 года назад
as always so wonderfull
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
Thanks Alfi!
@mikaeltenshio8352
@mikaeltenshio8352 2 года назад
You are a great teacher🥰🥰
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
Thanks Mikael!
@izorskoperz
@izorskoperz Год назад
Thank you Danny
@MakeAppswithDanny
@MakeAppswithDanny Год назад
My pleasure Izor!
@brandonsayring
@brandonsayring 2 года назад
New tune! I hope your new course does well!
@Imaginativeone_DF
@Imaginativeone_DF 2 года назад
The ONLY reason I haven't already bought it is...(heh heh)
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
Thanks Brandon!
@mishenthakshana3407
@mishenthakshana3407 2 года назад
You are the best vue teacher thanks
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
Thanks Mishen! Got a Vue 3 & Firebase 9 Tutorial video dropping today (12pm UK time)
@mishenthakshana3407
@mishenthakshana3407 2 года назад
@@MakeAppswithDanny I'm waiting for it ❤, these days I'm doing your vue composition api with pinia course, really awesome sir, You are really great ❤
@sergioalejandroservinarce3005
@sergioalejandroservinarce3005 2 года назад
you are the best airbender!
@MakeAppswithDanny
@MakeAppswithDanny 2 года назад
Er… I don’t know what that means, but thanks Sergio 😂
Далее
All New Major Features In Vue 3
9:00
Просмотров 16 тыс.
"Когти льва" Анатолий МАЛЕЦ
53:01
#31 provide/inject - Vue.js: концепции
16:39
Converting a Vue component to the Composition API
14:36
Data Fetching With Nuxt 3
20:31
Просмотров 33 тыс.
What is the Composition API? (Vue 3)
6:16
Просмотров 16 тыс.