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

Publicado el: 09 julio 2020
en el canal de: 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.


En esta página del sitio puede ver el video en línea Angular Component Interaction - @ViewChild | Pass Data Between Component | CodeWithSrini de Duración hora minuto segunda en buena calidad , que subió el usuario CodeWithSrini 09 julio 2020, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 4,622 veces y le gustó 51 a los espectadores. Disfruta viendo!