亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

angular.js - angularJS uses the pagination directive of ui-bootstrap to paginate data. How to write the controller is the most elegant way.
黃舟
黃舟 2017-05-15 16:57:06
0
1
575
<p class="table-responsive">
    <table class="table table-bordered">
      <thead>
      <tr class="active">
        <th>訂單號(hào)</th>
        <th>項(xiàng)目</th>
        <th>姓名</th>
        <th>手機(jī)號(hào)</th>
        <th>下單日期</th>
        <th>使用日期</th>
        <th>場(chǎng)次</th>
        <th>金額</th>
        <th>消費(fèi)方式</th>
      </tr>
      </thead>
      <tbody>
      <tr ng-repeat="order in vm.orders">
        <td><a href="">{{order.number}}</a></td>
        <td>足球</td>
        <td>{{order.user.name}}</td>
        <td>{{order.mobile}}</td>
        <td>{{order.created_at}}</td>
        <td>{{order.order_items[0].start_at}}</td>
        <td>
          <ul>
            <li ng-repeat="item in order.order_items">{{item.venue.name}}號(hào)場(chǎng)地:{{item.start_at | dateFormat |
              date:'HH:mm'}}-{{item.end_at | dateFormat | date:'HH:mm'}}
            </li>
          </ul>
        </td>
        <td>{{order.payment_price | price}}</td>
        <td>現(xiàn)場(chǎng)訂單</td>
      </tr>
      </tbody>
    </table>

    <pagination total-items="vm.totalItems" ng-model="vm.currentPage" ng-change="vm.pageChanged()"
                previous-text="上一頁(yè)" next-text="下一頁(yè)" max-size="5"></pagination>
  </p>
黃舟
黃舟

人生最曼妙的風(fēng)景,竟是內(nèi)心的淡定與從容!

reply all(1)
世界只因有你

Please ask for the plug-in Github address

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template