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

Поделиться
HTML-код
  • Опубликовано: 21 ноя 2024

Комментарии • 53

  • @MakeAppswithDanny
    @MakeAppswithDanny  2 года назад +1

    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 года назад +5

    Dude...you're off the charts with your awesomeness.

  • @dekebaoe
    @dekebaoe 2 года назад +4

    Thank you Danny.
    Amazing as always.
    Can't wait for the full course

  • @arslonbekroziboyev5683
    @arslonbekroziboyev5683 2 года назад +2

    thank you for the useful information related to vue.js

  • @liamconverse8950
    @liamconverse8950 2 года назад +1

    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 👍

  • @mikaeltenshio8352
    @mikaeltenshio8352 2 года назад +1

    You are a great teacher🥰🥰

  • @dreammanor_ru
    @dreammanor_ru 2 года назад +1

    Hi! Thank you for explaining important topics.

  • @ministersport
    @ministersport 2 года назад +1

    with what frequency videos will be adding to playlist?
    thanks for your work

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 года назад +4

      Aiming for every Monday, Wednesday & Friday. Next one tomorrow 👍

  • @mishenthakshana3407
    @mishenthakshana3407 2 года назад +1

    You are the best vue teacher thanks

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 года назад +1

      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 ❤

  • @izorskoperz
    @izorskoperz 2 года назад +1

    Thank you Danny

  • @RobertWildling
    @RobertWildling Год назад +1

    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  Год назад +1

      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!

  • @brandonsayring
    @brandonsayring 2 года назад +1

    New tune! I hope your new course does well!

  • @sergioalejandroservinarce3005
    @sergioalejandroservinarce3005 2 года назад +1

    you are the best airbender!

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 года назад

      Er… I don’t know what that means, but thanks Sergio 😂

  • @alfriansyah9895
    @alfriansyah9895 2 года назад +1

    as always so wonderfull

  • @truthteachers
    @truthteachers 2 года назад +1

    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 года назад +1

      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 года назад +1

      @@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 года назад +1

      @@truthteachers it will be on Udemy. Link with my discount will be available on my site 👍

  • @yesimhere7285
    @yesimhere7285 2 года назад +1

    Any idea when the Udemy course will be available?

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 года назад +1

      Hopefully in about 2 or 3 weeks 👍

    • @yesimhere7285
      @yesimhere7285 2 года назад

      @@MakeAppswithDanny Thanks! I'm looking forward to it! Love your classes!

  • @riyad-appscode
    @riyad-appscode 2 года назад +1

    Thanks for Amazing Video

  • @SpaceGuideHub
    @SpaceGuideHub 2 года назад +1

    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.

  • @Mozescodes
    @Mozescodes Год назад +1

    Group relevant code together you mean make spaghetti code like in React

  • @antonztxone
    @antonztxone 2 года назад +1

    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.

    • @antonztxone
      @antonztxone 2 года назад +1

      @@MakeAppswithDanny Got it) i'm in love with TailwindCss👍🏻

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 года назад +2

      @@antonztxone Cool. Still haven't had a chance to play with Tailwind 👍

  • @Alexandr661961
    @Alexandr661961 Год назад +1

    Hey Danny, where is new videos?

    • @MakeAppswithDanny
      @MakeAppswithDanny  Год назад

      Hopefully once I'm done with Fudget 2 (hopefully soon) 👍

  • @SpaceGuideHub
    @SpaceGuideHub 2 года назад +1

    Where is Danny?

  • @larryweidig2800
    @larryweidig2800 2 года назад +1

    Any reason you are using Bulma over Quasar?

    • @MakeAppswithDanny
      @MakeAppswithDanny  2 года назад +1

      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 года назад +1

      @@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!