Created
August 24, 2022 02:49
-
-
Save touhidrahman/ba9326ed367e08babc37eb0d1879fe25 to your computer and use it in GitHub Desktop.
pagination.component.ts - 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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