@ViewChild/@ViewChildren in Angular (Tutorial 35)

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ก.ย. 2024
  • @ViewChild/@ViewChildren decorator provides us with a easy and simple way to access and manipulate the properties and methods of a Child Component from a container or root component.
    By using @viewchild we can achieve the following things,
    • Accessing template of same component
    • Accessing the template of child component
    The @ViewChild query returns the first matching element from the DOM and updates the component variable on which we apply it.
    we must supply the query selector, which can be a string or a type as the first argument to the ViewChild
    Please watch my other video that I have created to explain the functionality of Subject and its variants in RxJS, so that you can understand it easily in Angular.
    RxJS Subject: • RxJS Subject | What is...
    RxJS BehaviorSubject : • BehaviorSubject | Beha...
    RxJS Replay Subject: • ReplaySubject | Replay...
    Angular Subject and BehaviorSubjet: • Subject and BehaviorSu...
    Promises vs Observables: • Promises vs Observable...
    Promises vs Observables shorts: • Promise vs Observable ...
    DON'T CLICK HERE: shorturl.at/AFGJT
    This code is available on github:
    github.com/nis...
    This Book will help you to understand angular more: amzn.to/3f1nf9q
    I have used below FAKE API in demo to illustrate the AsyncSubject:
    restcountries....
    ►Subscribe Now: / nishasingla 🔔 Stay updated!
    Watch complete playlist here: • Introduction- Angular ...
    Follow us on:
    Facebook: / angularjs4beginners
    LinkedIn: / nisha-singla-82407aa0
    Instagram: / passion4code
    #viewchildren #viewchild #nishasingla

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

  • @MaheshSuryawanshi-r1v
    @MaheshSuryawanshi-r1v 15 วันที่ผ่านมา

    Very simple and clear video

  • @437pavankalyan2
    @437pavankalyan2 หลายเดือนก่อน

    such a wonderful explanation...

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

    very well explained (y) Keep up the good work.

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

    Great 🎉

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

    Amazing Explanation in very easy words. hats off to you . such a great tutorial.

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

      Thank you so much for your comment 😀😀👍🏻

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

    Finally really understanding these concepts and where everything is supposed to go and how it gets accessed. After countless of tutorials, articles and Maximilian's Schwarzmuller's famous Udemy course put on repeat for these concepts (he does NOT know how to properly explain concepts), you are like a breath of fresh air! Thank you! Going to check out if you also explain the ContentChild concept as well. have an amazing day Nisha! :)

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

      Really glad to know that you finally got what you were looking for ..
      Checkout this video Content Projection with ng-content (Tutorial 36)
      th-cam.com/video/b71prZA8sQ0/w-d-xo.html
      Stay connected 🤞🏻😀

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

      Yes I too agree with Cora..Max famous course is not at all digestive for freshers like me ..He never explains basic concepts properly 👀😅..Thanks to you as finally after wasting 2 days I understood some important concepts!! I'm super excited to learn angular from your videos now!!

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

      checkout procademy utube channel for angular hes great for freshers

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

      I couldn't agree more about Nisha -- and I knew she was different inside of 60 seconds of this video. I was working on an exercise that went through the "Difference between Template-Driven and Reactive Forms in Angular" -- and I was running into some compilation errors. One of them involved @ViewChild -- and it was a blessing in disguise because that issue led me here.
      As for Maximilian, through immense experience -- my advice would be to never get too hung up on a particular teacher (regardless of reputation). I'm not commenting one way or the other on his courses -- I'm simply saying that if you find yourself repeating the instruction, find someone else who works better for you. I'm sure you know that now, but I wanted to mention it anyway.
      For example: I was watching an excellent Udemy course on OOP in C#. The course is great for what it is -- but it doesn't dive into detail (which is fine because it wasn't designed that way). But I had a couple of questions along the way -- where I wanted more detail. That led me to this guy (who blew my mind -- once again, inside of 60 seconds).
      PART 1: Constructors in C#.NET Part 1 | C#.NET Tutorial | Mr. Bangar Raju.
      That guy dives into detail like nothing I've ever seen -- and he makes every second count. Moreover, by the end of each video -- I understood everything he explained (which is incredibly rare for complexity at that level -- for me, anyway). Once again, that's not a knock on other instructors -- as their instruction is obviously working for some people. And of course, I'm not saying we shouldn't be critical of instructors -- I'm just saying that it often comes down to just finding the right ones for you.
      Speaking of which: I already have plenty of good resources on Angular, but I feel quite fortunate to have found Nisha -- as she set herself apart right out of the gate. Gotta love how that works: The frustration of resolving compilation issues and digging deeper to understand -- led me someone who can help me better understand.
      . . .

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

      @@akd2487 Probally that guy does not fully understand the concepts...otherwise he can explain it clearly!

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

    Thank you, finally someone who explains @ViewChild clearly.

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

      thank you much 😀😀

  • @pankajmenkudale
    @pankajmenkudale 2 หลายเดือนก่อน

    Superb....Good explained...

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

    Great explanation. Thanks for clearing all my doubts on @viewchild and @viewchildren

  • @DebasmitSamal294
    @DebasmitSamal294 2 หลายเดือนก่อน

    Excellent

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

    Never understood this viewchild and viewchildren until i saw this video. Thanks a lot.

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

      I'm glad my video was able to help you understand this subject.

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

    Simply amazing !!!! love your teaching style

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

    You are really amazing, i have been stuck in this viewchild from very long and you made me understand in single go.. Thank you

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

      Good to know it helped you 😀😀

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

      can i get your number

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

    very simple but detailed and easy to understand tutorials. thanks a lot !!!

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

    Nisha, you are an excellent trainer with expertise in the subject. You explained such complex concepts/topics of angular effortlessly. I am a big fan of you. I watched your whole angular series and only one word, it is awesome. I have never seen such a detailed explanation of Angular Topics. You really made our life easy. Thank you so much and Hope you will continue to share your knowledge with strugglers.

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

    very well explained. thanks

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

    Very nice tutorial... thankyou somuch

  • @VijayKumar-fq4ie
    @VijayKumar-fq4ie ปีที่แล้ว

    Wow really a great tutorial because its a good description of viewchild n viewchildren. Thanks a lot

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

    Thanks! This video cleared up a lot of my doubts!

  • @arpit846
    @arpit846 5 หลายเดือนก่อน

    Explain in simple way, Thanks

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

    Nice explanation easy to understand the concept

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

    Having watched the whole course before, I now use it as a reference.
    Thanks again for putting it out there.
    Still helping developers a year in 👍🏾

  • @sourabhpandit6724
    @sourabhpandit6724 4 หลายเดือนก่อน

    Excellent simple Explanation .

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

    Today only I got to know your channel... Really all your videos are amazing and you know it's superb superb all concepts are very clean and clear... Thanks a lot and really God bless you for your wonderful work

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

      Thank you so much.. Glad to know you like it :)
      Stay connected

  • @vj-angular
    @vj-angular 3 ปีที่แล้ว +2

    Very great.. Ur way of explanation is too good.. Thanks for the video

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

    Excellent tutorial! Thank you 👍

  • @Deen.youth.
    @Deen.youth. ปีที่แล้ว

    Good job mam🎉

  • @ZahidHussain-hj2dk
    @ZahidHussain-hj2dk 2 ปีที่แล้ว

    Amazing content ...very helpful .
    Highly recommended for beginners

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

    This is such a clear explanation, you could easily start with angular development using this series

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

    Thanks for so simple explanation

  • @Muslim-zm8sx
    @Muslim-zm8sx 2 ปีที่แล้ว

    Great

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

    Very nicely explained.
    The comparison with JS helped a lot.
    Good job

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

    Frankly speaking, this short really saved me.
    thanks a lots

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

    Got good clarity of viewchild and viewchild, never been this clear, thanks :)
    Keep going!!

  • @tousifbiswas1115
    @tousifbiswas1115 4 หลายเดือนก่อน

    greate ...

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

    Wow, this is amazing. Described the concept very clearly and into the point. Now I fully understand the concept upto this point. Keep up with great work.

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

    Thanks for your teaching 🎉

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

    Top 🤗

  • @31sar
    @31sar 3 ปีที่แล้ว +1

    Thanks from the bottom of my heart

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

    Nice Explaination

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

    Very well explained..... thank u :)

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

    wow how easily you explained
    thanks for such vedios.😊🙂

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

    This is the best explanation of @ViewChild() ✨❄️🤍

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

    you are a blessing for angular beginners, thank you so much for your hard work

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

    you are the best. so far I have seen many videos for angular but nobody made it so clear about life cycle hooks thank you so much for keeping it so clean.

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

    awesome 😊

  • @rahulsingh12
    @rahulsingh12 8 หลายเดือนก่อน

    Simple & to the point. Keep up the good work Nisha.

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

    OMG this woman is the best Angular Tutor I've seen!
    Thank you so much for your excellent videos!

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

      Thank you so much for showing this response 😀😀🙏🙏✌🏻

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

    you are a blessing for angular beginners like me, thank you so much!!!

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

    Quality content Nisha. Completely understood. Subscribed.

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

      Thanks for connecting 😀😀

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

    Super Madam. Thanks for giving valuable Info

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

    excellent explaination

  • @rohitpandey9986
    @rohitpandey9986 8 หลายเดือนก่อน

    Wow! Crisp and Clear 👍

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

    I always consider this topic difficult and always try to skip. But you are great, you made me understand it very easily and never forget type. Thank you so much....

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

    thanks for the video it really helped me.

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

    Great ..Nice.. Very easily you explained Ma'am.. 👍

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

    Very good explanation.

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

    mindblowing explanation.
    you are awesome

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

    thank you very much

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

    thanks a lot. You made me tension free.

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

    great Nisha... more thanks for this video.... kindly do video for headers and interceptor concept...

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

    Just a small additional note. Instead of putting ref to a child component we could just put this in our .ts file ->
    *@ViewChild(CounterComponent) child: CounterComponent* instead of *@ViewChild('childView) child: CounterComponent*
    In this way we are omitting the usage of ref in .html file. Btw, video is super helpful and clear. Thanks :)

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

      Hey thanks for your suggestion.. Appreciate 👍🏻👍🏻😊😊

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

    Thank you ma'am for this knowledge

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

    Best explanation so for this topic

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

    Awesome Nisha... thanks for the clean and clear explanation

  • @akash.deep1001
    @akash.deep1001 2 ปีที่แล้ว

    Just Amazing Nisha. Kudos to you !! Thanks a lot

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

    wow Nisha , this is really good !! keep up the good work . loads of good wishes to you

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

    wow, very well explained :D

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

    Very nice explanation

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

    Very nicely explain

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

    Great video, Thanks!!

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

    Best Explanation

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

    Mam amazing teaching..... Pls continue the angular series.... It will be helpful for everyone.......

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

    Hey Thanks for the explanation , it was really helpful , these concepts were initially hard to learn and grasp with other instructors , and now you've made it super simple to understand thanks for your effort, and also it would be great if you could teach on connecting angular CRUD app to mysql database , hoping to learn a lot from you !

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

    So beautifully explained!

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

    just want to say THANK YOU (with heart symbol)

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

    Clear explanation

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

    It helped me a lot to understand the concept clearly. thankyou for your efforts ... 🔥

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

    Your teaching soo simple

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

    Mam your voice is clear and beautiful, I can understand clearly all the concepts, thanks for sharing the knowledge!!

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

    Nisha you are doing marvelous job i loved it super I never saw such types of angular videos in TH-cam great job

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

      Thank you so much 🙂

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

    great tutorial ! thanksss

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

    Wow.. I got this concept.. thanks

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

      Glad to know 😀😀

  • @NitinTalwar-v3z
    @NitinTalwar-v3z ปีที่แล้ว +1

    kept it really simple to understand. cheers

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

    You are explaining all concepts really well Nisha.

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

    Appreciated your explanation

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

    perfect..

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

    Great 👏

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

    Good tutorial

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

    amazingg!!

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

    Literally..I am addicted to ur videos..such great & wonderful explanation I ever watched on TH-cam..thank u so much for ur efforts..it make our life easier technically..🥰👍

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

      Addiction is not good for health. LoL

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

    Thank you so much. This is a great content!

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

    Your teaching technique is great and also you have very depth knowledge, I have subscribed your channel and looking to learn more complex things about Angular. Thank you

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

    very well explained

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

    wow❤

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

    Wonderful.

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

    Thanks a lot

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

    Hey Nisha, you're so good at explaining and you made my day dear. Please post video on resolvers if possible.

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

      Thanks Swathi 😀😀

  • @user-ob9gg7wi4m
    @user-ob9gg7wi4m ปีที่แล้ว

    nice mam

  • @easycode937
    @easycode937 5 หลายเดือนก่อน

    very well explained
    😘😘😘😘