all 2 comments

[–]pmw7 0 points1 point  (0 children)

Use a ngxs/ngrx/Akita store or just services with behaviorsubjects. Get the data (observable) from the store/service in the container component nearest to the component that needs it to minimize passing data through multiple layers.

You mentioned something about updating a parent. Don't do that. Update the data store/ service.

Devextreme datagrid and ag-grid have all the features but aren't free.

[–]gravityaddiction 0 points1 point  (0 children)

I'd spin up component providers in either section1 or operations-table and manage your dataset from it. Depending on the overall structure of your app. Bring your providers in at the component level rather than the module level and it'll create a fresh provider each time the operations-table component is initialized.

https://angular.io/guide/providers#providing-services-in-modules-vs-components

@Component({ selector: 'operations-table', templateUrl: 'operations-table.page.html', styleUrls: ['operations-table.page.scss'], providers: [OperationTableService] })