0

I created a component and use ag-grid at it. Assuming I have package this component and do not want to change it. How to get grid data in parent component? I tried using @ViewChild but the data is received as a async Returns its undefined value. Is there a way to access the table model and get the data? This data may change as the page changes and I should understand.

Thank you that help me.

Mahdi
  • 307
  • 6
  • 19

1 Answers1

0

You can use @ViewChild

  @ViewChild(YourGridComponent) gridComponent: YourGridComponent;

And access your component this object

farhad
  • 26
  • 4