Vue v-model in child components and defineModel

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

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

  • @drehimself
    @drehimself  11 месяцев назад +4

    defineModel is now stable in Vue 3.4: blog.vuejs.org/posts/vue-3-4#definemodel-is-now-stable

  • @whatsupbudbud
    @whatsupbudbud 9 месяцев назад +3

    Loved your structural approach from least to most abstract.

  • @Niv-i9b
    @Niv-i9b Год назад +2

    So glad I found this video.
    I just started working with Vue after React and this topic was very confusing for me. Especially since the same thing can be done in different ways. Thanks!

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

    Wow !
    Been a while, Andre !
    Single-handedly, your e-commerce video series made me an intermediate Laravel developer.
    Returning to say "Thank you" !

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

    This video was very helpful, thanks

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

    Thank you, this was a really helpful explanation!

  • @acerhigh09
    @acerhigh09 5 месяцев назад

    defineEmits not needed when using defineModel, are still there in the defineModel example, but perhaps that implicitly meant

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

    Awesome content Andre

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

    This is so helpful! Thank you so much!

  • @aissa.bouguern
    @aissa.bouguern Год назад

    Great and informative video as usual!

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

    the best explanation. Great.

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

    Thanks....followed your tutorial n works very well, however, in Vue DevTools, in the child component, it shows:
    event-listeners:
    update:model-value: not-declared
    Is it that Vue devtools is not ready for this "defineModel" macro? Please suggest

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

    Nice content, Andre.

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

    Thanks for the great video! Looking forward to more :)

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

    Does this work if the modelValue is an object that contains arrays?

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

    Any full courses that will come from you?

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

      Possibly in the future, for now, just trying to get some steady content going here on YT.

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

    Hi, what vscode theme are you using?

  • @isabelphillips451
    @isabelphillips451 5 месяцев назад

    Thank you for this 🤗

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

    If you try to console log the name ref in the app component, the value will not update in the console when the input value changes.
    Can someone explain to me why? I am a React developer
    How can i make the name ref update in the script tag?
    Thanks in advance

    • @whatsupbudbud
      @whatsupbudbud 9 месяцев назад

      Question is where in the App component lifecycle you're console.logging it. If you did it just in the script tag, that would be similar to doing once on mounted.

  • @TheTatsin
    @TheTatsin 3 месяца назад

    Thank you !

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

    Excellent Vid. Very well explained.
    Thanks for willing to share your knowledge, and taking your time to create this vid.
    Question to you.. R U a fan of TS ? And if I can ask ... Why (not) ?

    • @drehimself
      @drehimself  Год назад +2

      I've only used TypeScript at a very basic level, I haven't really used it for any major projects. I understand the benefits, and I think you'll only see them if you really decide to go all in. Vue 3.3 has made some considerable improvements to using TS within Vue, so maybe we'll see more Vue devs using it.
      Check out this talk by Tanner Linsley (author of popular React libraries) who outlines his journey from non-TS person, to all-in with TS: ruclips.net/video/O4IWJcafX8c/видео.html. I think this is how most TS users feel.

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

      @@drehimself Thank you for your reply ! Highly appreciated.