#How to call a component with outputs from the ts file ?

1 messages · Page 1 of 1 (latest)

plain minnow
#

Hello,

I would like to know how can I call a component from his parent typescript file please ?

In my case I have the variable "cellRenderer" from Ag grid which

ParentComponent {
cellRenderer = myComponent
}

And I would like to get the information from myComponent because I am using a clicking function inside which give me data. (I thought to @output and eventEmitter but I have no other ideas.

sturdy sinew
#

Hi, I don't understand what you are trying to do with

#

cellRender = myComponent

plain minnow
sturdy sinew
#

If you are in a child component, I don't think there is any way you can call a method from the parent component, but you can interact with the parent with a Service

#

If you are in the parent component, you can interact with the child, with a Reference, an Output ( in the child ), or with a Service