title: AgGrid: does onGridReady fall into line with Angular hooks?
body: <p>I'm passing data source to the grid like so:</p>
  <pre><code>  @Input() id: number;
  
    public gridOptions: GridOptions = {
      ...
      onGridReady: (event) =&gt; this.onGridReady(event)
    };
  
    public onGridReady(params): void {
      const dataSource = {
        getRows: (rowsParams: IGetRowsParams) =&gt; {
  
          return this.dataService.getData(this.id)
            .subscribe(data =&gt; rowsParams.successCallback(data.rows, data.amount))}
      };
  
      params.api.setDatasource(dataSource);
    }
  </code></pre>
  <p>And the template:</p>
  <pre><code>&lt;ag-grid-angular class=&quot;ag-theme-alpine&quot; [gridOptions]=&quot;gridOptions&quot;&gt;&lt;/ag-grid-angular&gt;
  </code></pre>
  <p>The questions is - is it safe to use <code>@Input</code> variable in <code>onGridReady</code> event? The question is probably wider than that, when does <code>onGridReady</code> fires accordingly to Angular lifecycle hooks?</p>
  <p>P.S. AgGrid version 24 and Angular 10</p>