ng-sortablejs
Version:
16 lines (12 loc) • 464 B
text/typescript
import { Injectable } from '@angular/core';
({
providedIn: 'root',
})
export class SortablejsService {
// original library calls the events in unnatural order
// first the item is added, then removed from the previous array
// this is a temporary event to work this around
// as long as only one sortable takes place at a certain time
// this is enough to have a single `global` event
transfer: (items: any[]) => void;
}