Que puede estar mal en este código, si pico en ítems por pagina funciona bien, pero si actualizo la pantalla no se ve ningún elemento al principio solo si le pico a ítems como mencione.
HTML
<tr *ngFor="let item of slices">
<td>
{{ item.name }}
</td>
<td>
</tr>
<mat-paginator
(page)="event($event)"
(length)="this.user.length"
(pageIndex)="0"
(pageSize)="3"
(pageSizeOptions)="(3,6,9)"
>
TS
public user: users() = ();
public slices = this.user.slice(0,3)
event(event: PageEvent) {
const startIndex = ((event.pageIndex + 1) - 1) * event.pageSize
let endIndex = startIndex + event.pageSize
if (endIndex > this.user.length){
endIndex = this.user.length
}
this.slices = this.user.slice(startIndex,endIndex);
}