使用角度绑定代替jQuery来操作DOM确实很有帮助,但是如果没有jQuery,我不知道如何处理拖动事件。
例如,我希望将第二个框向上拖动到first,或者拖动ng-repeat li来更改顺序
angular是否有拖动事件或指令?
<div>
<li>This is first box</li>
<li>This is second box</li>
</div>
//or like below
<div><li ng-repeat="box in boxs | orderBy:'o
我有一个jQuery可排序列表。当我开始拖动一个项目时,我希望在它被拖动时删除一些文本,以便它在拖动时只显示第一行。例如,我有一个ol:
<ol>
<li>Here is some text. <span>Here is a bunch of other text</span>
<li>Here is some text also. <span>Here is a bunch of other text as well</span>
</ol>
当我开始拖动第一个li时,我希望它在拖动时只显示