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.
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..:)
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.
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.
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.
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
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 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.
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
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..
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
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..:)
Thanks Amol.
Very nice explanation. Many thanks.
Glad it was helpful!
Good Tutorial Covered the concept and explained nicely. Best video for Understanding ViewChild and viewChildren.
Simple and easy to clear the viewchild. Thanks dear
Thanks it's help for me, & waiting for next videos
nice way and a suuper exemples you are good at explaining things i realy enjoyed it !!
Nicely Explained
Awesome man. I loved it
really nice video to understand vc vch , thank you so much
Really cool tut~ More real-world app practice for the ViewChild, ViewChildren examples more welcome.
Very simple and to the point explanation with proper explanation! Keep up the good work, buddy! 😃😊
Really...NIce Tutorial
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.
Many thanks
NabKishore Barik Please share the usages as why you need to use @ViewChild/Children, ElementRef/TemplateRef/NativeElement etc
Great brother ur awesome 😊👌
Amazing view
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.
Thanks bro
Nice Tutorial
A very very Good tutorial..
Thanks
really nice Sailkat
I like how in the last 30 seconds you can hear the clock ticking in the background as the time displayed updates
😆
Best explanation so far, thank you so much!
You uploaded view child and children in that you show on latest but updated not shown show that one also
Thanx man.It helped a lot.
Very helpful
Thanks brother
Sir please make more videos on theme material design thanks
Hi Saikat, Thanks for your tutorials .. Could Please explain few more concepts like Dynamic Component Loading, Lazy Loading and HTTP interceptor
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.
@@SaikatsTutorial please it will be really helpful if u do those concepts..
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
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 :)
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.
@@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.
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
You need to use ngAfterViewInit hook instead of ngOnInit
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..
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
it's not Valo it is Value. ;)
pls github this video source code