我想让这个https://stackblitz.com/edit/angular-dynamic-survey-creation-golkhg可拖动并保存到 json 文件,所以我可以查看数据,我使用了 angular cdk 但我我被困在这个函数中
onDrop(event: CdkDragDrop<string[]>) {
moveItemInArray(this.items, event.previousIndex, event.currentIndex);
}
我找不到要替换的变量this.items
,有人可以帮我吗?当然我想将数据存储到 json 文件