ค้นหาเว็บไซต์

typescript - Angular ไม่สามารถคอมไพล์ ngb-pagination เกิดข้อผิดพลาด NG8002


ผมกำลังทำงานในโปรเจกต์ Angular ในโปรเจกต์นี้ผมกำลังใช้ Angular ngb-pagination กับคุณสมบัตินี้ ผมเริ่มต้นโดยนำเข้า import { NgbModule } from '@ng-bootstrap/ng-bootstrap'; ใน app-module.ts และในส่วน imports ผมนำเข้า NgbModule จากนั้นในส่วน HTML ผมใช้สิ่งนี้

  <ngb-pagination [collectionSize]="countAllUsers" [pageSize]="limitAllUsers" [(page)]="pageAllUsers" [maxSize]="5"
    [rotate]="true" [ellipses]="false" [boundaryLinks]="true" (pageChange)="loadAllUsersPage($event)"
    class="pagination-black pagination-on-game"></ngb-pagination>

แต่โดยปกติมักจะมีข้อผิดพลาดในคุณสมบัตินี้ rotate ellipses boundaryLinks และนี่คือสาเหตุ

error NG8002: Can't bind to 'rotate' since it isn't a known property of 'ngb-pagination'.
1. If 'ngb-pagination' is an Angular component and it has 'rotate' input, then verify that it is part of this module.
2. If 'ngb-pagination' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

21       [rotate]="true" [ellipses]="false" [boundaryLinks]="true" (pageChange)="loadAllUsersPage($event)" 

ฉันต้องการความช่วยเหลือหน่อยนะ ขอบคุณค่ะ