Run the CLI
Use the CLI to add the component to your project.
Use the CLI to add the component to your project.
Create the component directory structure and add the following files to your project.
import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { ZardPaginationModule } from '../pagination.module';
@Component({
selector: 'z-demo-pagination-default',
standalone: true,
imports: [ZardPaginationModule, FormsModule],
template: ` <z-pagination [zPageIndex]="currentPage" [zTotal]="5" [(ngModel)]="currentPage" /> `,
})
export class ZardDemoPaginationDefaultComponent {
protected currentPage = 2;
}