Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yanruoxinb opened this issue Dec 15, 2017 · 0 comments
Open

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

yanruoxinb opened this issue Dec 15, 2017 · 0 comments

Comments

@yanruoxinb
Copy link

  <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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant