How to call a service from ag grid drag & drop event
问题 I have an ag-grid set up with options to trigger drag and drop events: this.gridOptions = { columnDefs: this.getColumnDefs(), rowDragManaged: true, onRowDragEnter: this.onRowDragEnter, onRowDragEnd: this.onRowDragEnd, ... I also have a simple service export class myService { ... public doSomething(): void { ... } } It seems I cannot call the doSomething service function from within the onRowDragEnd event - getting a cannot read property 'doSomething' of undefined... at Object.onRowDragEnd