This is a simple pagination algorithm implementation written for Angular app in typescript. It will produce pagination with first, last and in-between numbers with ellipses separator defined by the delta constant.
Example Output: Delta: 2, Pages: 9
- 123…9
- 1234…9
- 12345…9
- 123456…9
- 1…34567…9
- 1…456789
- 1…56789
- 1…6789
- 1…789