【发布时间】:2013-12-11 14:35:21
【问题描述】:
我将我的应用升级到 AngularJS 1.2,因此也切换到 ui-sortable v 1.2。
排序是为 Accordion-Groups 实现的(来自 ui-bootstrap)。使用可排序的主树版本,我可以在手风琴标题内收听 ng-mouseover/ng-mouseleave,但使用 1.2 版本,只要我没有进行任何排序,mouseevents 只会收听。对排序顺序进行任何更改后,mouseevents 就会失聪...
这是一个 Plunker:http://plnkr.co/edit/n8yms9pb7uJp77zZ9LFK?p=preview
谁能给我一些建议如何解决这个问题? 谢谢
【问题讨论】:
-
可能不应该在您的 plunk 中使用
raw.github.com链接:Refused to execute script from 'https://raw.github.com/angular-ui/ui-sortable/angular1.2/src/sortable.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled. -
正确的方法是什么?无法通过“查找外部库”找到可排序的..
-
知道了:更新到 rawgithub.com 链接
标签: angularjs jquery-ui-sortable angular-ui angularjs-bootstrap