Episode 12 | Angular @ViewChild and @ViewChildren

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2025
  • Get reference of the template inside your component class using ViewChild or ViewChildren to change the behavior and appearance of the element. Watch is this tutorial for more details.

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

  • @amolmali3583
    @amolmali3583 6 ปีที่แล้ว +10

    Hi Saikat.. Nice tutorial..For first few mins, I was under impression that tutorial going too slow but you are good at explaining things. I enjoyed it and received what I was looking for..Looking for more videos from you...
    Thank you so much, Keep it up..:)

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

    Very nice explanation. Many thanks.

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

    Good Tutorial Covered the concept and explained nicely. Best video for Understanding ViewChild and viewChildren.

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

    Simple and easy to clear the viewchild. Thanks dear

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

    Thanks it's help for me, & waiting for next videos

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

    nice way and a suuper exemples you are good at explaining things i realy enjoyed it !!

  • @DineshYadav-hz1ne
    @DineshYadav-hz1ne 5 ปีที่แล้ว +1

    Nicely Explained

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

    Awesome man. I loved it

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

    really nice video to understand vc vch , thank you so much

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

    Really cool tut~ More real-world app practice for the ViewChild, ViewChildren examples more welcome.

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

    Very simple and to the point explanation with proper explanation! Keep up the good work, buddy! 😃😊

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

    Really...NIce Tutorial

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

    Sir Great!!!, after use this visual, atleat I'm able to work on @ViewChild/Children, ElementRef/TemplateRef/NativeElement etc. Very clear to understand, I appreciate your topic, Again Thanks a Lot.

    • @SaikatsTutorial
      @SaikatsTutorial  6 ปีที่แล้ว

      Many thanks

    • @TT-ud5gf
      @TT-ud5gf 6 ปีที่แล้ว

      NabKishore Barik Please share the usages as why you need to use @ViewChild/Children, ElementRef/TemplateRef/NativeElement etc

  • @anandr8028
    @anandr8028 5 ปีที่แล้ว

    Great brother ur awesome 😊👌

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

    Amazing view

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

    This is goooood!!! I am real stingy with compliments. So, if I say this is good (with multiple 'O's ) it mean your tutorial is really good! Thank you for making this Saikat.

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

    Nice Tutorial

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

    A very very Good tutorial..

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

    really nice Sailkat

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

    I like how in the last 30 seconds you can hear the clock ticking in the background as the time displayed updates

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

    Best explanation so far, thank you so much!

  • @y.haritha1219
    @y.haritha1219 3 ปีที่แล้ว +1

    You uploaded view child and children in that you show on latest but updated not shown show that one also

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

    Thanx man.It helped a lot.

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

    Very helpful

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

    Thanks brother

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

    Sir please make more videos on theme material design thanks

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

    Hi Saikat, Thanks for your tutorials .. Could Please explain few more concepts like Dynamic Component Loading, Lazy Loading and HTTP interceptor

    • @SaikatsTutorial
      @SaikatsTutorial  6 ปีที่แล้ว

      Sure Ravi. I have plan for next video tutorial on moduler design practice and lazy loading, but unable to complete due to huge work pressure. For sure I will upload tutorial this month.

    • @saianusha2818
      @saianusha2818 6 ปีที่แล้ว

      @@SaikatsTutorial please it will be really helpful if u do those concepts..

  • @DANIELRICHSON
    @DANIELRICHSON 5 ปีที่แล้ว

    Hi Saikat, we have dynamic tabs, in each tab we have s embedded and we have the hidden form in angular to post data to ...if I use ViewChild or ViewChildren I m getting only current tab form data only by using nativeelement. But when it gets submitted it is getting posted to first tab only..Help on this item urgently

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

    Hi saikat. i'm facing an issue in angular 7. A little help would be highly appreciated. Here's my problem :
    I want to display a component independently, when that component is called, without showing the root component(in my case, the app.component.html). What is the way to do that ?
    thanks a lot :)

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

      Hi, I need to understand the exact use case. But root component must be displayed. Though bootstrap function is able to take multiple root components.

    • @arijitchakrabarty1552
      @arijitchakrabarty1552 5 ปีที่แล้ว

      ​@@SaikatsTutorial Thanks for the reply. I solved the problem, though. I, basically had to render a component independently. But due to some restrictions, I was facing some problems. It's fixed now :D
      Thanks again.

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

    Hi, i have a question .. How do i manipulate the dom within the *ngIf directive using the viewchild... i tried and got nativeElement undefined .. Is there a way i can detect if a certain dom had been rendered after ngOnInit so that i can fire up a method once it is rendered, because some of my dom will only rendered after a data is received by backend (observable) ... Thank you

    • @SaikatsTutorial
      @SaikatsTutorial  6 ปีที่แล้ว

      You need to use ngAfterViewInit hook instead of ngOnInit

  • @sanjuk3185
    @sanjuk3185 5 ปีที่แล้ว

    I was trying to add two numbers in angular its working fine when i use button but i want to perform addition on keyup and the sum should be passed to child component without using any button or click event through function in app.component.ts
    Please tell how to do this. Thanks in Advance..

  • @1004robinson
    @1004robinson 5 ปีที่แล้ว

    Using angular 4.1
    In .html file: ,
    In .ts file
    import { Component, OnInit, ViewChild, ElementRef, AfterViewInit } from '@angular/core';
    @ViewChild('benchBotTab') benchBotTab: ElementRef;
    ngAfterViewInit() {
    console.log(`MyViewChild: ${this.benchBotTab.nativeElement}`);
    }
    but I'm getting an error like
    Runtime Error
    Uncaught (in promise): TypeError: this.benchBotTab is undefined

  • @younas61805
    @younas61805 4 ปีที่แล้ว

    it's not Valo it is Value. ;)

  • @khanhnam99
    @khanhnam99 6 ปีที่แล้ว

    pls github this video source code