@ViewChild/@ViewChildren in Angular (Tutorial 35)

Надежный VDS
2 Просмотры
Поддержите сайт и поделитесь материалом в соц.сетях:

Издатель
@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: https://youtu.be/DWLJegTWVxM
RxJS BehaviorSubject : https://youtu.be/G1vcm53pt0M
RxJS Replay Subject: https://youtu.be/KxiaCZWHwqk
Angular Subject and BehaviorSubjet: https://youtu.be/u5iNPN-aGZU
Promises vs Observables: https://youtu.be/qfKkDEudaRs
Promises vs Observables shorts: https://youtu.be/o1z4dHcEdOc

DON'T CLICK HERE: https://shorturl.at/AFGJT

This code is available on github:
https://github.com/nishaSingla/AngularTutorial.git

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/india?fullText=true

►Subscribe Now: https://www.youtube.com/nishasingla ???? Stay updated!

Watch complete playlist here: https://www.youtube.com/watch?v=WSu-G0gk3Ks&list=PLC8OkhrVTHNHi6Do0etu_wMvAvjdjukQp

Follow us on:

Facebook: https://www.facebook.com/AngularJS4Beginners
LinkedIn: https://www.linkedin.com/in/nisha-singla-82407aa0/
Instagram: https://www.instagram.com/passion4code/

#asyncSubject #HttpCache #nishasingla
Категория
Other
Комментариев нет.
Kwork.ru - услуги фрилансеров от 500 руб.