angular.js - How to arrange serial numbers according to order in angularjs, reading from pagination?
PHP中文网
PHP中文网 2017-05-15 17:02:11
0
1
502

Now, 20 pieces of data are read from each page of the database.
Now using a {{$index 1}} can only display from 1 to 20 every time.
However, I want to start from the first page. The 1 on one page is displayed until 100,200... like this.
How to achieve it? <td data-title="'Serial Number'">{{$index 1}}</td>

For example, the current situation is

First page
Serial number
1
2
3

Second page
Serial number
1
2
3

If you want to change it to:

First page
Serial number
1
2
3

Second page
Serial number
4
5
6

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
某草草

Lazy way: add an id field in the background and just display it on the front end

For the front-end cover method, calculate it yourself based on the page number,
pagenumber x pagesize plus $index

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