@ViewChild/@ViewChildren in Angular (Tutorial 35)

@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  - Ang...   RxJS BehaviorSubject :    • BehaviorSubject | BehaviorSubject vs Subje...   RxJS Replay Subject:    • ReplaySubject | ReplaySubject vs BehaviorS...   Angular Subject and BehaviorSubjet:    • Subject and BehaviorSubject | Components C...   Promises vs Observables:    • Promises vs Observables - Angular (Tutoria...   Promises vs Observables shorts:    • Promise vs Observable | Difference between...   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:   / angularjs4beginners   LinkedIn:   / nisha-singla-82407aa0   Instagram:   / passion4code   #viewchildren #viewchild #nishasingla