Paginator class in Angular