import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { PaginationComponent } from './pagination.component'; import { PaginationRoutingModule } from './pagination-routing.module'; import { ReactiveFormsModule, FormsModule } from '@angular/forms'; import { NaPipeModule } from '@ng-arthur-mobile/forms'; import { NgZorroAntdModule } from 'ng-zorro-antd'; import { NaPaginationModule, NA_PAGINATION_MAPPING, NA_PAGINATION_DEFAULT } from '@ng-arthur-mobile/http'; import { NaTranslateModule } from '@ng-arthur-mobile/core'; @NgModule({ imports: [ CommonModule, PaginationRoutingModule, FormsModule, NgZorroAntdModule, ReactiveFormsModule, NaPipeModule, NaPaginationModule, NaTranslateModule ], exports: [ PaginationComponent ], providers: [ // { // provide: NA_PAGINATION_MAPPING, // useValue: { // data: 'aa', // total: 'total', // pageIndex: 'pageIndex', // pageSize: 'pageSize' // } // }, // { // provide: NA_PAGINATION_DEFAULT, // useValue: { // data: [], // total: 0, // pageIndex: 1, // pageSize: 1, // startup: true, // pageSizeOptions: [10, 20, 30, 50, 100] // } // } ], declarations: [PaginationComponent] }) export class PaginationModule { }