我包括所有必要的脚本(错误是脚本的顺序+缺少 jQuery):
<script src="scripts/vendor/angular/angular.js"></script>
<script src="components/angular-bootstrap/ui-bootstrap-tpls.js"></script>
<script src="components/angular-ui/build/angular-ui.js"></script>
并使用此代码段:
<div ng:controller="controller">
<ul ui:sortable ng:model="list">
<li ng:repeat="item in list" class="item">{{item}}</li>
</ul>
<hr />
<div ng:repeat="item in list">{{item}}</div>
</div>
但我不断收到此错误:
TypeError: Object [object Object] has no method 'sortable'
有没有人经历过同样的事情并知道出路?