Converting a Vue component to the Composition API

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

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

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

    Check out the source for this video on GitHub: github.com/aschmelyun/video-vue-converting-composition-api

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

    This real-life example is excellent also for those who are just learning Vue. Any interaction with Laravel would be great too.

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

    Fantastic explanation. Thank you!

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

    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...

  • @Quynn-Oneal
    @Quynn-Oneal 2 года назад +2

    13:34 what if I need to use user property inside totalCost computed property above? do I need to move totalCost below the user?

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

      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

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

    Nice. Thanks Andrew.

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

    Great job 👏

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

    Hi, may i know how can use this.$set inside vue composition api?

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

    👏👏👏

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

    helpful, thank you

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

    Is a very good example! Can you do any video using Vuex and composition API? Thank you!

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

      Sure thing! I’ll add that to my list of ideas

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

    Useful, thank you !

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

    Composition API well understood thanks ❤️

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

      I'm glad you understand it now!

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

    Can you please make a video about life-cycle hooks?

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

    it's very useful example thank you !

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

      Thanks, glad you liked it!

  • @Troy-ol5fk
    @Troy-ol5fk 2 года назад

    please make a video about testing vue components with jest or cypress

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

      This is on my to-do list and I will have a video for it in a few weeks!

  • @xtraszone
    @xtraszone 7 месяцев назад

    Didn't need to import defineProps

  • @HadayatNiazi-xp1fz
    @HadayatNiazi-xp1fz 11 месяцев назад

    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