Skip to content

Instantly share code, notes, and snippets.

@touhidrahman
Created August 24, 2022 02:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save touhidrahman/ba9326ed367e08babc37eb0d1879fe25 to your computer and use it in GitHub Desktop.
Save touhidrahman/ba9326ed367e08babc37eb0d1879fe25 to your computer and use it in GitHub Desktop.
pagination.component.ts - 1
import { CommonModule } from '@angular/common'
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
import { RouterModule } from '@angular/router'
@Component({
selector: 'app-pagination',
standalone: true,
imports: [CommonModule, RouterModule],
templateUrl: './pagination.component.html',
styleUrls: ['./pagination.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class PaginationComponent {
@Input() currentPage = 1
@Input() totalPages = 1
@Input() size = 24
@Input() windowSize = 2
@Input() showFirstLastButton = true
@Input() routerLinkBase: string[] = []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment