Skip to content

为什么使用ng-repeat出来的不能排序 #52

Description

@yanruoxinb
  <table data-sortable class="tableMax table-striped sortable-theme-bootstrap"  style="margin-top: 
           30px;" >
            <thead>
            <tr>
                <th>{{desc}}</th>
                <th ng-repeat="i in tableKeyList" >{{i.desc}}<span></span></th>
            </tr>
            </thead>

            <tbody>
            <tr ng-repeat="item in items|orderBy:col:desc">
                <td>{{item[dimension]}}</td>
                <td ng-repeat="i in tableKeyList">{{item[i.field]}}</td>
            </tr>
            </tbody>
        </table>

table

只能第一列排序,其它列不能排序啊

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions