问题
Hi I am using angular 7 drag and drop feature. I am following this link
https://stackblitz.com/edit/angular-material-drag-copy?file=app%2Fapp.component.html
I want to check the data which is being dropped and based on the value i need to set whether it is a mat expansion panel or mat list. which is to be shown in the ui.
I am using ngrepeat for generating the list items in both the drag and dropped place.
Basically I want to decide the UI element which is to used based on the value that is being dropped. Say if it is environment then I should get a mat panel inside which i can drop list items. If it is memory which is an item inside a list then it should be a simple mat list which is to be added.
来源:https://stackoverflow.com/questions/57924066/how-to-select-the-dropped-data-ui-based-on-the-value-present-in-the-dropped-item