Angular 如何使用ngx dnd将项目放入其他项目

Angular 如何使用ngx dnd将项目放入其他项目,angular,drag-and-drop,ngx-drag-drop,Angular,Drag And Drop,Ngx Drag Drop,我有一个列表项结构,其中的项可以是相同项的子项。以下是示例阵列: folders: [ { name: 'Category-1', type: 'Folder', childCategories: [ { name: 'SubCategory-1', type: 'Folder', childCategories: [], },

我有一个列表项结构,其中的项可以是相同项的子项。以下是示例阵列:

folders: [
      {
        name: 'Category-1',
        type: 'Folder',
        childCategories: [
         {
          name: 'SubCategory-1',
          type: 'Folder',
          childCategories: [],
         },
        ],
      },
      {
        name: 'Category-2',
        type: 'Folder',
        childCategories: [],
      },
    ]
这些文件夹呈现为列表。当我将一个文件夹拖到另一个文件夹中时,我至少需要一个事件(例如,我想将“Category-1”拖到“Category-2”中,使第一个文件夹成为第二个文件夹的子文件夹)。有什么活动吗