标签:
参考地址:http://kamilkp.github.io/angular-sortable-view
案例:jsp:
<div sv-root sv-part="vm.dataList">
<div ng-repeat="item in vm.dataList" sv-element class="list-well width-95b">
<div>{{item.displayName}}</div>
<i ng-class="{‘icon-eye-open‘: item.open, ‘icon-eye-close‘: !item.open}" ng-click="fn.setDataListState(item)"></i>
</div>
</div>
js:注入模块
angular.module(‘ni.controllers.account‘, [‘angular-sortable-view‘]);
引入js:angular-sortable-view.js
<script src=‘/static/assets/libs/angular-sortable-view.js‘></script>
标签:
原文地址:http://www.cnblogs.com/qyhol/p/5741132.html