Vue 3 Script Setup Tutorial - This Changes Everything!

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ส.ค. 2024
  • In this video, I’m gonna show everything you need to know to get started with the Script Setup pattern for Vue 3 & the Composition API
    👉 Vue 3 Composition API Course: dannys.link/compositionapi
    Using the Script Setup pattern will massively reduce the complexity and number of lines in your Vue 3 components.
    In this super simple component we’re gonna create it will reduce the lines of our script section from 28 lines to just 14 lines!
    So just imagine the kind of reductions you’ll get in a real-world, complicated app with 100s of components!
    Throughout this tutorial, I’ll show you how we did things the old way (Setup Function) vs how we do them the new way (with Script Setup).
    0:00 Introduction
    02:21 Getting Started
    04:20 Setup Function - Out with the old…
    07:32 script setup - In with the new…
    08:58 Methods
    11:07 Child Components
    13:37 Props
    17:14 Emits & Custom Events
    20:57 Emits - Passing Data
    21:54 Learn More
    👉 Vue 3 Composition API Course: dannys.link/compositionapi
    👉 My Courses - dannys.link/courses
    👉 Download Fudget: www.fudget.com
    👉 My VSCode Setup - dannys.link/vscodesetup
    👉 DONT CLICK THIS - dannys.link/dontclick

ความคิดเห็น • 211

  • @MakeAppswithDanny
    @MakeAppswithDanny  2 ปีที่แล้ว +8

    Please Like, Share, Subscribe & Comment - it all helps me create more content for you!
    👉 Vue 3 Composition API Course: dannys.link/compositionapi
    👉 My Courses: dannys.link/courses
    👉 Download Fudget: www.fudget.com
    👉 My VSCode Setup: dannys.link/vscodesetup
    👉 DONT CLICK THIS: dannys.link/dontclick

  • @starkid981
    @starkid981 ปีที่แล้ว +6

    that last segment taught me more about emits in Vue *with* the Composition API in 1 minute than the rest of my hours of research combined

  • @maskman4821
    @maskman4821 2 ปีที่แล้ว +24

    This tutorial is freaking awesome, the new script setup works very much alike svelte, and I can't wait for the new Vue3 composition-api course, Thank you Danny 🙏

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว +3

      Thanks Mask Man! I still need to get around with playing with Svelte! 👍

  • @MrWilde
    @MrWilde หลายเดือนก่อน +1

    Actually my name is Bob and I am 49 :) Awesome videos Danny, very well explained and easy to follow. Love Your Work!

  • @hamzazekri234
    @hamzazekri234 9 หลายเดือนก่อน +2

    i loved the comparaison between the old and the new setup,script setup is just a wonderful method to make developement workflows very easy and simple

  • @albertliu5760
    @albertliu5760 ปีที่แล้ว +3

    man, didn't know the script setup was so powerful, you're tutorials are amazing

  • @pi-dev5079
    @pi-dev5079 2 ปีที่แล้ว +1

    This tutorial made me buy your new Vue 3 with Pinia course! Thank you, so helpful.

  • @anthonyngooo
    @anthonyngooo ปีที่แล้ว +5

    Thanks for the breakdown. I really liked how you clearly demonstrated the differences and the "so what" factor between options and composition api with straightforward commentary and examples (and pointed out the lines of code reduced)

  • @kobrowsky
    @kobrowsky 2 ปีที่แล้ว +1

    The music in the intro was so eerie, that I'm watching this video in my gas mask.

  • @fleisch1992
    @fleisch1992 2 ปีที่แล้ว +1

    So glad I stumbled across your video :)

  • @LostPlaceChroniken
    @LostPlaceChroniken 2 ปีที่แล้ว +1

    As always - a great tutorial. Can't wait for more stuff and you course.

  • @dekebaoe
    @dekebaoe 2 ปีที่แล้ว +1

    Amazing and mind-blowing as always.
    Thank you Danny!

  • @raheelsiddiqui1520
    @raheelsiddiqui1520 2 ปีที่แล้ว +1

    this is the best vuejs channel!

  • @theomegamale5335
    @theomegamale5335 2 ปีที่แล้ว +3

    Absolutely brilliant video. If you are using VSCode, select the text and use CMD+/ to toggle comment on the selection....Will save you headache in these vids!

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว +1

      Thanks Omega. Yeah, I know the shortcut. I was doing it manually as using the shortcut was messing up my unusual indentation for some reason 👍

  • @TheFarahk
    @TheFarahk 11 หลายเดือนก่อน +1

    This is great. I love how you show the old and the new making it very easy to follow along

  • @kingston2977
    @kingston2977 5 หลายเดือนก่อน +1

    Fantastic demonstration… :) thanks a ton

  • @boian-inavov
    @boian-inavov 2 ปีที่แล้ว +2

    As someone who’s been absent from Vue since Vue 2, I’ve completely missed the setup function pattern composition api, but this seems waay more intuitive. Great tutorial!

  • @wellerautomobile57
    @wellerautomobile57 2 ปีที่แล้ว +4

    Again a mindblowing, easy and great explanation, Danny.
    Thank you so much!

  • @AndreLarangeira
    @AndreLarangeira 2 ปีที่แล้ว +2

    I Love the script setup, great video!

  • @chetandhongade6464
    @chetandhongade6464 ปีที่แล้ว +1

    Thanks man your view is straight to the point an I love it

  • @lynguist
    @lynguist ปีที่แล้ว +1

    EXACTLY what i needed! well executed, thanks!

  • @codewithbru
    @codewithbru ปีที่แล้ว +1

    Thank you so much for this video, really help me a lot.

  • @idolgin776
    @idolgin776 ปีที่แล้ว +1

    Thank you for the tutorial! I have been struggling for weeks to figure out different patterns to use in Vue (I am new to it), and this video helped a lot! I tend to like the script setup pattern.

  • @rafalka7084
    @rafalka7084 2 ปีที่แล้ว +1

    I've fallen in love with Vue again. Great tutorial!

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว +1

      That's great to hear, Klawe! Yeah, shame Vue 3 didn't come out of the gate with Script Setup. It makes such a difference!

  • @sshared8447
    @sshared8447 ปีที่แล้ว +1

    This video is Extremely helpful! I love it! Thank you Danny!

  • @MangoSent
    @MangoSent 2 ปีที่แล้ว +1

    This is what I was looking for, most of the tutorials were flying over the changes. I'm still new to Vue and was using the old way using data method. Thanks a lot and I'm gonna check your course!

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว

      Glad it helped Mango! hope you enjoy the course!

  • @thySerge
    @thySerge ปีที่แล้ว +1

    Fantastic and extremely valuable info! Liked and subscribed.

  • @felixyakubov91
    @felixyakubov91 2 ปีที่แล้ว +1

    Great! Good luck with the new course.

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว

      Thanks Felix! I've recorded all the videos, we're just editing now. Almost half the content is coming to TH-cam soon 👍

  • @syahrilasidiq4170
    @syahrilasidiq4170 ปีที่แล้ว +1

    Great content, help me a lot. keep it up 🔥🔥🔥

  • @va5468
    @va5468 10 หลายเดือนก่อน +1

    Very clear, thank you!)

  • @augustoaraujorocha8718
    @augustoaraujorocha8718 2 ปีที่แล้ว +3

    esse tutorial é o melhor do youtube atualmente , obrigado

  • @sanjaytk
    @sanjaytk ปีที่แล้ว +1

    Just awesome... excellant clarification 👌👌

  • @uwu3798
    @uwu3798 2 ปีที่แล้ว +1

    Amazing! Thank you so much

  • @khashayarshomali
    @khashayarshomali ปีที่แล้ว +1

    Thank you very much Danny. ❤️

  • @masumparvez6255
    @masumparvez6255 2 ปีที่แล้ว +1

    This one video is enough to understand all about script setup. Thanks

  • @Unis975
    @Unis975 ปีที่แล้ว +1

    This video is amazing!
    I was completely lost in various people's code, mixing up the two patterns and having a super frustrating time writing code that works, but not knowing why. That said, also pretty new to Vue.
    Thank you, Danny!

  • @walidsalah3414
    @walidsalah3414 ปีที่แล้ว +1

    thank you so much tis was so clear from you

  • @mfinity1689
    @mfinity1689 2 ปีที่แล้ว +1

    Thanks for new knowledge.

  • @aliabdi-is4lo
    @aliabdi-is4lo ปีที่แล้ว +1

    Great tutorial!

  • @pgnt
    @pgnt ปีที่แล้ว +1

    Great video, thank you.

  • @adipradhan3506
    @adipradhan3506 2 ปีที่แล้ว +1

    The best video for script setup 😎✨

  • @johanvanwambeke723
    @johanvanwambeke723 ปีที่แล้ว +1

    Thanks you Danny

  • @theenriquecarbo
    @theenriquecarbo 2 ปีที่แล้ว +1

    Nice video. Thanks

  • @vidu2
    @vidu2 11 หลายเดือนก่อน +1

    Thanks much!!!, subscribed

  • @nordicnomad5473
    @nordicnomad5473 2 ปีที่แล้ว +1

    Thanks a lot for this video. I have been struggling really hard to understand Vue3 JS, since I am very new to Vue. Most of the tutorials available using the composition API but not
    With your video, now I understood the concepts.
    Thanks again

  • @kismatkc4245
    @kismatkc4245 ปีที่แล้ว +1

    Best way to progress from old feature to new.We hope to see same kind of video where you show old way of doing and new way in the future.

    • @MakeAppswithDanny
      @MakeAppswithDanny  ปีที่แล้ว

      Thanks Kismat!

    • @MacroHAX
      @MacroHAX ปีที่แล้ว +1

      I agree. I’m a react user and I’m new in vue. I hate the old script format. I was introduced by my supervisor to use Script Setup format but I’m having a hard time due to lack of YT tutorials. This is really helpful. Keep doing this.

    • @MakeAppswithDanny
      @MakeAppswithDanny  ปีที่แล้ว

      @@MacroHAX Thanks!

  • @brandonsayring
    @brandonsayring 2 ปีที่แล้ว +5

    Great vid, Danny! Hope you're doing well.
    If you're only using props and emits in the template and not in the script section, you dont have to assign it to a variable at all. Just run the defineProps and deineEmits methods in the script when the component loads.
    also, for some reason when importing a child component, you can choose to use kebab-case instead of PascalCase/camelCase when using the component in the template. eg:
    import MyChild from '@components/MyChild.vue'
    Not sure if this has always been a Vue thing but I just stumbled on it recently.
    It's really interesting to see how clunky vue 3 was pre and how much it has improved over the past year. The setup function was the reason I was reluctant to switch from Vue 2. It's great to see how less verbose Vue is becoming!

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว +2

      Thanks Brandon! Good point about not needing a variable! Yeah, I wish composition api had come out of the gate with script setup, I think a lot more people would've been on board with it!

    • @brandonsayring
      @brandonsayring 2 ปีที่แล้ว +1

      @@MakeAppswithDanny Yeah for sure, man!
      I think the shifts from vue2 -> vue3 composition api -> vue3 is going to be quite confusing for new developers to vue. I'd imagine Stackoverflow results must be quite a mess for anyone starting out. In that respect, it's really great that you are making content like this to help!

  • @jpongthep
    @jpongthep 10 หลายเดือนก่อน +1

    thank you very much

  • @maskman4821
    @maskman4821 2 ปีที่แล้ว +2

    I would like to see a Nuxtjs course from Danny, hopefully Danny move some attention to Nuxtjs 🙏

    • @RobertWildling
      @RobertWildling 2 ปีที่แล้ว +1

      I actually come from Nuxt v2 and was so happy to find Quasar, which I meanwhile favor over Nuxt.

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว

      @@RobertWildling @Mask Man. I may take a look at some point 👍

  • @duongvankhai1210
    @duongvankhai1210 ปีที่แล้ว +1

    nice video, good job my friend

  • @GergelyCsermely
    @GergelyCsermely 2 ปีที่แล้ว +1

    Thnaks.

  • @MrKnowledgeShare
    @MrKnowledgeShare 3 หลายเดือนก่อน +1

    great video thanks!

    • @MakeAppswithDanny
      @MakeAppswithDanny  3 หลายเดือนก่อน

      Glad you liked it!

    • @MrKnowledgeShare
      @MrKnowledgeShare 3 หลายเดือนก่อน +1

      @@MakeAppswithDanny why you stopped making youtube videos? Your last video is a year old?

    • @MakeAppswithDanny
      @MakeAppswithDanny  3 หลายเดือนก่อน +1

      @@MrKnowledgeShare It was unmanageable while I was working on my app Fudget 2, with old fashioned editing tools. However, I can work on Fudget 2 less now and have found much better editing tools. So, watch this space! 👍

  • @hervenln
    @hervenln 2 ปีที่แล้ว +1

    Thank you Danny! Excellent tutorial (as usual) 👌
    I'm fairly new to Vuejs 3, which I like a lot as far. But coming from Ruby on Rails, and its DRY philosophy, Vuejs can be quite verbose, with (annoying) repeats, especially in the setup. So I'm very happy with the new script setup way!

  • @frontendtutorials7821
    @frontendtutorials7821 ปีที่แล้ว +1

    very nice

  • @RobertWildling
    @RobertWildling 2 ปีที่แล้ว +6

    Always a very reqarding adventure to watch your videos, Danny! Singend up for your course, which I am very much looking forward to. (Any chance you could integrate a register/login/authenticate chapter?) - Since you use Vite now and Quasar supports Vite, too, will you port your Fudget 2 to Vite? And if so, do you plan to provide a video about that to your INCREDIBLE Fudget 2 video series?

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว +4

      Yeah maybe I could do the Vite switchover video, it would be good as webpack is getting a bit slow as the app is so complicated. I've already recorded all of the videos (we're just editing now) and there is no back-end stuff included. I might be persuaded to add a bonus lecture in the future if a lot of people are requesting it. I'll have to see how the course does 👍

  • @ukwuomatochukwu3947
    @ukwuomatochukwu3947 ปีที่แล้ว +1

    Nice 🚀

  • @oismaelash
    @oismaelash ปีที่แล้ว +1

    Great video !!!
    And amazin course on udemy

  • @niinoocode
    @niinoocode 2 ปีที่แล้ว +1

    I liked 👍🏻

  • @darkmift
    @darkmift 2 ปีที่แล้ว +1

    U should include lifecycle methods...the topic is often overlooked in vue3

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว +1

      Thanks Avi. Lifecycle hooks are in the course. They're also gonna be covered here on TH-cam in the free portion of 8 videos I'll be sharing soon 👍

  • @aabhusanaryal5158
    @aabhusanaryal5158 ปีที่แล้ว +1

    Really helpful! But I was wondering if people would do everything (eg defining their methods) inside setup back in the Vue 2 days?

    • @MakeAppswithDanny
      @MakeAppswithDanny  ปีที่แล้ว

      No, setup came with Vue 3 really (although there were Composition API plugins for Vue 2 later on). Vue 2 was all options API.

  • @gavinworks01
    @gavinworks01 ปีที่แล้ว +1

    Awesome as always but without the daft music track would be even better 😊

    • @MakeAppswithDanny
      @MakeAppswithDanny  ปีที่แล้ว +1

      Thanks Gav. Nah, mate. It's a banger! 😂

    • @gavinworks01
      @gavinworks01 ปีที่แล้ว +1

      @@MakeAppswithDanny AHAHAHA. You're mint you like. Nice that you replied. Keep going. Learning tons!

  • @DimXtreme7
    @DimXtreme7 2 ปีที่แล้ว +2

    nice explanation video, thx. like this one!
    ps. Danny, use Meta+/ or Ctrl+/ ;)

    • @brandonsayring
      @brandonsayring 2 ปีที่แล้ว +2

      hahaha I was thinking that every time he was commenting stuff out. It felt like a subtle form of punishment to watch.

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว +2

      @@brandonsayring Haha yeah I do normally use the shortcut, I'm not sure why I didn't here 😂

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว +1

      I remembered why I wasn't using the comment shortcut, it was messing up my formatting after I uncommented, so it was quicker to just comment manually than to fix all the formatting 👍

  • @gamagedotme536
    @gamagedotme536 5 หลายเดือนก่อน +1

    excelenthe

  • @emmanuelnwabuodafi6415
    @emmanuelnwabuodafi6415 ปีที่แล้ว +1

    We miss you boss

    • @MakeAppswithDanny
      @MakeAppswithDanny  ปีที่แล้ว +1

      Thanks man. Yeah it's been a while 👍

    • @emmanuelnwabuodafi6415
      @emmanuelnwabuodafi6415 ปีที่แล้ว +1

      @@MakeAppswithDanny Thanks for all you do for the ecosystem, been working heavily with quasar myself

    • @MakeAppswithDanny
      @MakeAppswithDanny  ปีที่แล้ว

      @@emmanuelnwabuodafi6415 Thanks. Quasar is great!

  • @4t196
    @4t196 2 ปีที่แล้ว +1

    Great comparaison,
    I would just suggest you to increase the font size of your editor. It’s very tiny even at 1080p.
    Beside that, nice video.

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว

      You’re right, I usually increase it more but forgot on this one… 🤦‍♂️

  • @perfect.stealth
    @perfect.stealth ปีที่แล้ว +1

    I absolutely love your videos but I wish they were more mobile friendly. It's Impossible to view them from the phone due to the code being too small. I'd suggest zooming in on the code and ditch split screen entirely. Just some viewer feedback

    • @rickyanthony
      @rickyanthony 7 หลายเดือนก่อน

      Most coding videos are like that.

  • @MajidFouladpour
    @MajidFouladpour 2 ปีที่แล้ว +1

    This is great! Thank you Danny.
    One question: How is Quasar affected by this change?

    • @AngelHdzMultimedia
      @AngelHdzMultimedia 2 ปีที่แล้ว +5

      Smooth transition, as Quasar v2 was made entirely for Vue 3. And activating doesn't need any big configuration. And what also was introduced withe is using Vite as default CLI, so in the meantime Quasar supports vite in v3, we can use the Quasar Vite Plugin, so we can first create a Vite project and then add Quasar as dependency. No boot files required.

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว +4

      Yeah like Angel said. You should be able to use in a new Quasar project, just the way I've shown here 👍

  • @CandraNurIhsan
    @CandraNurIhsan 2 ปีที่แล้ว +1

    Niceeees

  • @traitotaku4940
    @traitotaku4940 2 ปีที่แล้ว +1

    Hi Danny. I just subscribed! Thanks for the awesome video. Do you possibly know using ref to invoke(or access to the) child component's function is still the same way? or do I need to use defineExpose ? Looks like after changing to , My parent component lost the access to the child component's function.

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว +1

      Yes, you need to use defineExpose when using script setup 👍

    • @traitotaku4940
      @traitotaku4940 2 ปีที่แล้ว

      @@MakeAppswithDanny Great! Thank you!!!!

  • @PatrikM
    @PatrikM ปีที่แล้ว +1

    ALT+SHIFT+A , I'll just leave that here :)

    • @MakeAppswithDanny
      @MakeAppswithDanny  ปีที่แล้ว +1

      😂 the comment shortcut was messing with my (unusual) formatting 👍

    • @PatrikM
      @PatrikM ปีที่แล้ว +1

      @@MakeAppswithDanny I see! I was like... "please, shortcuts, please... please"! :D

  • @Gepeto213
    @Gepeto213 2 ปีที่แล้ว +1

    Welcome back Danny and thanks. Script setup is so awesome. Long time that I wasn’t warned about a video posted by you. It’s great to see you back. If I may I would like to add a point about a much convenient way to defineProps with TypeScript in my opinion. It is exposed in here : th-cam.com/video/SMGdokqKEuY/w-d-xo.html

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว +1

      Thanks Jean-Philippe! Good to be back! Ooh, nice! 👍

  • @SanjayaPrasanna03112004
    @SanjayaPrasanna03112004 ปีที่แล้ว +1

    Do you have a tutorial for user permission with laravel api and vue separate front?

    • @MakeAppswithDanny
      @MakeAppswithDanny  ปีที่แล้ว +1

      Hi Sanjaya. No, I don't have any Laravel tutorials.

  • @eamonnoflaherty2
    @eamonnoflaherty2 2 ปีที่แล้ว +1

    Hey I love your vids Danny, but the little left hand popup appeal to subscribe derails my attention. It seems to have lost the scratchy audio for it which is an improvement.
    The quality of your work and your spoken appeals to subscribe I find much more appealing- hence why I'm subscribed. Make of that what you will :) thanks for your great content.

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว +1

      Thanks Eamonn I'll keep that in mind. If more people complain, I'll consider removing it 👍

  • @giridhart
    @giridhart 2 ปีที่แล้ว +1

    I see quasar using `export default defineComponent({` same changes can be applied to this type of script part?

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว

      I think it should still work if you leave that in. I'm not certain though, I always remove that...

  • @Hex0dus
    @Hex0dus 2 ปีที่แล้ว +1

    Though I love your tutorial - what about injection?

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว

      Thanks. What do you mean? Provide / inject? What about that?

  • @markdonatelli8806
    @markdonatelli8806 2 ปีที่แล้ว +1

    is there a vscode extension for the script setup / syntax highlighting? I am loving the script setup patterns so far but it's bugging me that my variables/component imports/methods are not "highlighting" and reading as "value declared but never used" thanks!

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว

      Yes Mark, I think you want the Vetur Extension Pack. It’s a bit tricky to find, search the exact phrase then scroll down quite a bit. Edit: actually that’s wrong, it’s the Volar Extension Pack: marketplace.visualstudio.com/items?itemName=MisterJ.vue-volar-extention-pack

  • @nicholassingh138
    @nicholassingh138 2 ปีที่แล้ว +1

    Not sure if you said it but the new course will be using the script setup?

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว +1

      Yes it will Nicholas. Early on I will demonstrate Options API, then Setup Function, then Script Setup. Then for the rest of the course it’s Script Setup 👍

    • @nicholassingh138
      @nicholassingh138 2 ปีที่แล้ว

      Super lovely. Do you think you will talk about backend like mongo and node in the future? Im a beginner

  • @69leostereo
    @69leostereo 2 ปีที่แล้ว +1

    question , is quasar ready to work with script setup ? is there any video ?

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว

      Yeah Leandro, Quasar is all good to go for script setup! You can use it in exactly the same way as here (with newly created Quasar 2 projects) 👍

  • @AmeerHamza-fu3rz
    @AmeerHamza-fu3rz ปีที่แล้ว +2

    can you explain how can we use created hook in script setup in vue 3?.

    • @MakeAppswithDanny
      @MakeAppswithDanny  ปีที่แล้ว +1

      This is explained in my Vue 3 Composition API Tutorial series: th-cam.com/play/PLAiDzIdBfy8jr-ccMU8ymPn7o85RAZ_6T.html

    • @AmeerHamza-fu3rz
      @AmeerHamza-fu3rz ปีที่แล้ว +1

      thankyou...

  • @ascetahedonista7161
    @ascetahedonista7161 2 ปีที่แล้ว +1

    How do you alias your imported components from "MyComponent" to 'my-component-or-whatever'?

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว +1

      This happens automatically in Vue. You can use either PascalCase or dash-case. So if you import MyButton.vue you can use:
      or

    • @ascetahedonista7161
      @ascetahedonista7161 2 ปีที่แล้ว +1

      @@MakeAppswithDanny That is cool!

  • @RadiGamer
    @RadiGamer ปีที่แล้ว +1

    One question Danny, can I make somehow multiple refs in the same line? I have tried "const aux1, aux2, aux3 = ref('');" and it doesn't work.
    Thanks for the gread tutorial :)

    • @MakeAppswithDanny
      @MakeAppswithDanny  ปีที่แล้ว

      Thanks. I think you would need to do it like:
      const aux1 = ref(''), aux2 = ref(''), aux3 = ref('');

    • @RadiGamer
      @RadiGamer ปีที่แล้ว

      @@MakeAppswithDanny Thanks for the quick answer! Its still a bit redundant but a guess is a good price to pay for such a cool reactivity

  • @mimashator
    @mimashator 2 ปีที่แล้ว +1

    Can you destructure the define props?
    const { text } = defineProps({ ... })
    should remove the need for props.text

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว

      Good question Simonas, I haven't tried it. Did you try it?

    • @mimashator
      @mimashator 2 ปีที่แล้ว +1

      Not yet, haven't used Vue 3 yet... No time to migrate a 4 year project

    • @megalofauna
      @megalofauna 2 ปีที่แล้ว +2

      Your suggestion worked for me, Simonas. 👍

    • @mimashator
      @mimashator 2 ปีที่แล้ว

      @@megalofauna love it when a plan comes together...

  • @Paraluna
    @Paraluna 2 ปีที่แล้ว +1

    Script Setup is cool, however none of the help topics you find use it. So it's really a pain finding something like how tu use nextTick() within script setup. Also how do you replace this and $ in script setup?

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว

      I know, right Paraluna? This is all covered in my Vue 3 Composition API Tutorial Series: th-cam.com/video/3B0ry4GI1cE/w-d-xo.html

  • @RobertWildling
    @RobertWildling 2 ปีที่แล้ว +1

    There are 4 hidden videos in your "Vue 3Tipps & Tricks" - may I ask why?

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว +1

      Hey Robert. These are queued up for later, so that (after the course launch) I can get back to working on Fudget 2, while still having some content released over the next 2-3 months. These videos are:
      - Best VSCode Setup for Composition API (Vue 3)
      - What is a Composable? (Vue 3)
      - What is State Management? (Vue 3)
      - Vuex vs Pinia vs Composables (Vue 3 State Management)

    • @RobertWildling
      @RobertWildling 2 ปีที่แล้ว +1

      @@MakeAppswithDanny Thank you for your quick reply!

  • @yavuz1695
    @yavuz1695 ปีที่แล้ว +1

    the music in the transitions is too loud...

  • @kaibe5241
    @kaibe5241 ปีที่แล้ว +1

    It absolutely boggles my mind how many youtubers I see not using any keyboard shortcuts for coding. Like... you're being so incredibly inefficient in your output it drives me nuts lol

    • @MakeAppswithDanny
      @MakeAppswithDanny  ปีที่แล้ว

      If you mean the commenting, using the shortcut was messing up my indentation 👍

    • @kaibe5241
      @kaibe5241 ปีที่แล้ว +1

      @@MakeAppswithDanny no not commenting, even just tab to autocomplete method or function calls. So many times you're typing out a function name, getting it wrong, starting over, when it's literally a 1 or 2 key press, then tab to autocomplete that method call.
      Obviously this isn't a reflection of your actual tutorial, but it such a pet peeve of mine hahaha

  • @sasg87962
    @sasg87962 2 ปีที่แล้ว +1

    ctrl + /

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว +1

      😂 I know. I'm still not sure why I didn't use that in this video. I do in my every day... 🤦‍♂️

    • @sasg87962
      @sasg87962 2 ปีที่แล้ว

      @@MakeAppswithDanny same here, i ask my friends to use shortcuts yet i find myself not using it. LOL

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว

      ​@@sasg87962 I remembered why I wasn't using the comment shortcut, it was messing up my formatting after I uncommented, so it was quicker to just comment manually than the fix all the formatting 👍

  • @utiogaga1586
    @utiogaga1586 ปีที่แล้ว +1

    still prefer the old way

  • @darXound
    @darXound 2 ปีที่แล้ว +1

    Love your tutorials, but had to turn this one off because of the music. Please don't.

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 ปีที่แล้ว

      Thanks for the feedback Paul. But most of my videos have music right?

  • @calebprenger3928
    @calebprenger3928 ปีที่แล้ว +1

    I don't think this is a good idea. sure you have less lines, but it's less human readable

    • @MakeAppswithDanny
      @MakeAppswithDanny  ปีที่แล้ว

      Try it out on some projects and see what you think 👍

  • @zlatkoiliev8927
    @zlatkoiliev8927 ปีที่แล้ว +1

    Vue 3 is such a rubbish! I really turned from absolutely loving it in version 2, to completely hate every single piece of it in version 3!

    • @MakeAppswithDanny
      @MakeAppswithDanny  ปีที่แล้ว +1

      I feel you. I didn't like it at first. But having created an extremely complicated app with it (Fudget 2, coming soon: www.fudget.com) I have to say I love it now. The codebase is a lot more organised and concise with Vue 3, which will make maintenance & adding new features so much easier 👍

  • @l2cri
    @l2cri 2 ปีที่แล้ว +1

    this video for kids

  • @thedendengaming
    @thedendengaming ปีที่แล้ว +1

    this is awesome. auto subscribe.