Vue JS 3 Tutorial - 33 - Provide and Inject

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

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

  • @ruvaifamasood7280
    @ruvaifamasood7280 3 года назад +1

    It is funny that I have wasted my time in using the prop approach to nested components for many years. I am really grateful to you for this tutorial. This tutorial is life-changer for me. Stay blessed.

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

    I didn't know this existed, now by watching this video I'm Provide&Inject Guru. Tnx!

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

    Amazing explanation not only here but on every video I have seen about vue2/3 and react. You are a very good teacher!

  • @chetangoyal1295
    @chetangoyal1295 3 года назад +4

    Great Work man.. I really appreciate your dedication and teaching style.

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

    You're legit my fave Vue learning resource.

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

    Well done. It was best explaintion I have ever saw 🤙👏👏

  • @elchino7672
    @elchino7672 3 года назад +5

    What a wonderful explanation! I have just a question: how do we provide back from ComponentF to grand-parent component App? Is it again by using $emit ?

    • @suhridshayan6090
      @suhridshayan6090 3 года назад +1

      Create an object inside provide, create a method inside the object, use that in the Inject component to set the value or send value to Provide component.

    • @kamal_pratap
      @kamal_pratap 3 года назад

      @@suhridshayan6090 wow! I got the idea, can you share any article or video?

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

      @Suhrid Shayan how to emit from child to parent using provide and inject can u please share the video

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

    Thank You .Your tuts helps me a lot.

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

    im so fucking grateful this feature exists. I was a bit concerned about having to pass down data in props and how tedious it would be.

  • @Infinitude
    @Infinitude 3 года назад +1

    Easy and nice tutorial to understand.

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

    Nice a clear description thanks.

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

    What about child to child components? For example, Component A sending data to Component B.

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

    Wonderful explanation Sir ji ;)

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

    What will happen if Component C or E also provide a same property in provide function and accessing by using inject function in another component ?

  • @khaldounal-nuaimi3594
    @khaldounal-nuaimi3594 3 года назад

    That’s just amazing! Thank you for this

  • @manee427
    @manee427 3 года назад

    Thanks for wonderful Tutorial . do you have a plan to cover Router later? it will be very helpful especially nested Routers and Advanced Topics about that. again Thanks for wonderful video.

  • @81jlgregorio
    @81jlgregorio 3 года назад +1

    Wow.... it's amazing!

  • @rajatsharma6137
    @rajatsharma6137 3 года назад

    Hi...at 7:49 I think you need to write {{ username }} rather than {{ name }} ...in the code you are taking in value from data property instead of provide property.

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

    @6:45 Not Inject, provide does not allow bind its property in template block, Hope I am correct.

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

    wouldn't using a store (vuex) be a better alternative?

  • @radhikav2911
    @radhikav2911 3 года назад

    Thanks. And waiting for next video

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

    can we change the value from nested component ? or just injuct it only

  • @rukkiecodes
    @rukkiecodes 3 года назад +1

    Awesome. thanks alot

  • @shubhendrasrivastava2344
    @shubhendrasrivastava2344 3 года назад

    So basically worked as redux thing in react?

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

    so it is the same as context in react.

  • @Smoonwalkerm
    @Smoonwalkerm 3 года назад +1

    How can I provide to router file ?

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

    How to pass a function using provide and inject, suppose i want to pass counter value and increment function from app to nested child component,I am to pass counter value but I am unable to pass increment function? please anyone help me in this

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

    Can we pass boolean in provide??

  • @info_about-t4p
    @info_about-t4p Год назад

  • @ridl27
    @ridl27 3 года назад

    ty man

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

    it's easier than context api in react js

  • @nouchance
    @nouchance 3 года назад +1

    Nice bro! Catch my royal like 👍

  • @seshankkm5202
    @seshankkm5202 3 года назад +1

    upload react videos

  • @vincentvanclef9630
    @vincentvanclef9630 3 года назад

    The first 2 minutes could be boiled down to 10-15 seconds, that was tedious to watch... Other than that, nice explanation.