That happend because PrimeNg table doesn't have all the data as you do slicing on the first lazy event you can pass the whole data to the table and use paginator property with the table, as all the operations happens from the client side.
paginator