Angular Component Interaction - @ViewChild | Pass Data Between Component | CodeWithSrini

Опубликовано: 09 Июль 2020
на канале: CodeWithSrini
4,622
51

With @ViewChild, we can access information from child component esp values from our child component.

A ViewChild has two params, a selector and an option termed as opts which is an object.

Selector can be a template ref or a component, so in this case it’s DrugComponent.

And in the option we have to set static as false.

In the newer release of Angular presumably Angular 9 the default static is set to false.


На этой странице сайта вы можете посмотреть видео онлайн Angular Component Interaction - @ViewChild | Pass Data Between Component | CodeWithSrini длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь CodeWithSrini 09 Июль 2020, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 4,622 раз и оно понравилось 51 зрителям. Приятного просмотра!