What is the logic of custom padginator on Angular2?

I transmit to the server:

  • Page number;
  • Number of pages to display

I get from the server:

  • Total number of pages for output;
  • An array of pages to display;

It is not clear the purpose of three-pointed (as in the picture) and how to show it ( enter image description here

  • just hard-code? I do not see any problem here and even the need to use third-party directives / components, this is a very simple task - overthesanity
  • I basically made the output of links in ngFor depending on the count, but I do not understand the purpose ... and how to implement it. They should appear dynamically depending on the page probably - Marina
  • I do not see the point of using ngFor here, if you were given such a paginator design - then you better ask your designer what is ... and why they are needed - overthesanity
  • I ngFor dynamically display various links to pages. And how without him? - Marina
  • I see a fixed number of blocks previous 1 ... 3 4 5 ... 100 next - 9 blocks that can be hard-coded without the need to use ngfor - overthesanity

0