@ViewChild/@ViewChildren in Angular (Tutorial 35)
62.6 هزار بار بازدید -
3 سال پیش
-
@ViewChild/@ViewChildren decorator provides us with
@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 Subject ...
RxJS BehaviorSubject : BehaviorSubject | BehaviorSubject vs ...
RxJS Replay Subject: ReplaySubject | ReplaySubject vs Beha...
Angular Subject and BehaviorSubjet: Subject and BehaviorSubject | Compone...
Promises vs Observables: Promises vs Observables - Angular (Tu...
Promises vs Observables shorts: Promise vs Observable | Difference be...
DON'T CLICK HERE: https://shorturl.at/AFGJT
This code is available on github:
https://github.com/nishaSingla/Angula...
This Book will help you to understand angular more: https://amzn.to/3f1nf9q
I have used below FAKE API in demo to illustrate the AsyncSubject:
https://restcountries.eu/rest/v2/name...
►Subscribe Now: nishasingla 🔔 Stay updated!
Watch complete playlist here: Introduction- Angular (Tutorial #1)
Follow us on:
Facebook: Facebook: AngularJS4Beginners
LinkedIn: LinkedIn: nisha-singla-82407aa0
Instagram: Instagram: passion4code
#viewchildren #viewchild #nishasingla
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 Subject ...
RxJS BehaviorSubject : BehaviorSubject | BehaviorSubject vs ...
RxJS Replay Subject: ReplaySubject | ReplaySubject vs Beha...
Angular Subject and BehaviorSubjet: Subject and BehaviorSubject | Compone...
Promises vs Observables: Promises vs Observables - Angular (Tu...
Promises vs Observables shorts: Promise vs Observable | Difference be...
DON'T CLICK HERE: https://shorturl.at/AFGJT
This code is available on github:
https://github.com/nishaSingla/Angula...
This Book will help you to understand angular more: https://amzn.to/3f1nf9q
I have used below FAKE API in demo to illustrate the AsyncSubject:
https://restcountries.eu/rest/v2/name...
►Subscribe Now: nishasingla 🔔 Stay updated!
Watch complete playlist here: Introduction- Angular (Tutorial #1)
Follow us on:
Facebook: Facebook: AngularJS4Beginners
LinkedIn: LinkedIn: nisha-singla-82407aa0
Instagram: Instagram: passion4code
#viewchildren #viewchild #nishasingla
3 سال پیش
در تاریخ 1400/04/22 منتشر شده
است.
62,655
بـار بازدید شده