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

Publicado em: 09 Julho 2020
no 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.


Nesta página do site você pode assistir ao vídeo on-line Angular Component Interaction - @ViewChild | Pass Data Between Component | CodeWithSrini duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário CodeWithSrini 09 Julho 2020, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 4,622 vezes e gostou 51 espectadores. Boa visualização!