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

Pubblicato il: 09 luglio 2020
sul canale di: 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.


In questa pagina del sito puoi guardare il video online Angular Component Interaction - @ViewChild | Pass Data Between Component | CodeWithSrini della durata di ore minuti seconda in buona qualità , che l'utente ha caricato CodeWithSrini 09 luglio 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 4,622 volte e gli è piaciuto 51 spettatori. Buona visione!