Angular Can';t绑定到';项目总数';因为它不是';t'的已知属性;分页';

Angular Can';t绑定到';项目总数';因为它不是';t'的已知属性;分页';,angular,Angular,这是我的HTML分页标签 <pagination class="pagination-sm" [(ngModel)]="page" [totalItems]="length" [itemsPerPage]="itemsPerPage" [maxSize]="maxSize" [boundaryLinks]="true" [rotate]="false" (pageChanged)="changePage($event)" (numPages)="numPages = $event">

这是我的HTML分页标签

<pagination class="pagination-sm" [(ngModel)]="page" [totalItems]="length" [itemsPerPage]="itemsPerPage" [maxSize]="maxSize" [boundaryLinks]="true" [rotate]="false" (pageChanged)="changePage($event)" (numPages)="numPages = $event"></pagination>
GitHub包我正在使用@ng bootstrap/ng bootstrap,当时我遇到以下错误

Unhandled Promise rejection: Template parse errors:
Can't bind to 'itemsPerPage' since it isn't a known property of 'pagination'. ("
</tbody>
</table>
<pagination class="pagination-sm" [(ngModel)]="page"  [ERROR ->][itemsPerPage]="itemsPerPage" [maxSize]="maxSize" [boundaryLinks]="true" [rotate]="false" (pageChange"): ng:///TeamModule/TeamComponent.html@83:54
Can't bind to 'maxSize' since it isn't a known property of 'pagination'. ("tbody>
</table>
<pagination class="pagination-sm" [(ngModel)]="page"  [itemsPerPage]="itemsPerPage" [ERROR ->][maxSize]="maxSize" [boundaryLinks]="true" [rotate]="false" (pageChanged)="changePage($event)" (numPa"): ng:///TeamModule/TeamComponent.html@83:84
Can't bind to 'boundaryLinks' since it isn't a known property of 'pagination'. ("ination class="pagination-sm" [(ngModel)]="page"  [itemsPerPage]="itemsPerPage" [maxSize]="maxSize" [ERROR ->][boundaryLinks]="true" [rotate]="false" (pageChanged)="changePage($event)" (numPages)="numPages = $ev"): ng:///TeamModule/TeamComponent.html@83:104
Can't bind to 'rotate' since it isn't a known property of 'pagination'. ("on-sm" [(ngModel)]="page"  [itemsPerPage]="itemsPerPage" [maxSize]="maxSize" [boundaryLinks]="true" [ERROR ->][rotate]="false" (pageChanged)="changePage($event)" (numPages)="numPages = $event"></pagination>
</di"): ng:///TeamModule/TeamComponent.html@83:127
'pagination' is not a known element:
1. If 'pagination' is an Angular component, then verify that it is part of this module.
2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("
</tbody>
</table>
[ERROR ->]<pagination class="pagination-sm" [(ngModel)]="page"  [itemsPerPage]="itemsPerPage" [maxSize]="maxSiz"): ng:///TeamModule/TeamComponent.html@83:0 ; Zone: <root> ; Task: Promise.then ; Value: Error: Template parse errors:
Can't bind to 'itemsPerPage' since it isn't a known property of 'pagination'. ("
</tbody>
</table>
未处理的承诺拒绝:模板分析错误:
无法绑定到“itemsPerPage”,因为它不是“分页”的已知属性。("
][itemsPerPage]=“itemsPerPage”[maxSize]=“maxSize”[boundaryLinks]=“true”[rotate]=“false”(页面更改):ng:///TeamModule/TeamComponent。html@83:54
无法绑定到“maxSize”,因为它不是“分页”的已知属性(“tbody>
][maxSize]=“maxSize”[boundaryLinks]=“true”[rotate]=“false”(页面更改)=“changePage($event)”(numPa”):ng:///TeamModule/TeamComponent。html@83:84
无法绑定到“boundaryLinks”,因为它不是“pagination”的已知属性。“pagination class=“pagination sm”[(ngModel)]=“page”[itemsPerPage]=“itemsPerPage”[maxSize]=“maxSize”=“maxSize”[ERROR->][boundaryLinks]=“true”[rotate]=“false”(pageChanged)=“changePage($event)”(numPages)=“numPages=$ev”):ng:///TeamModule/TeamComponent。html@83:104
无法绑定到“rotate”,因为它不是“pagination”的已知属性(“on sm”[(ngModel)]=“page”[itemsPerPage]=“itemsPerPage”[maxSize]=“maxSize”[boundaryLinks]=“true”[ERROR->][rotate]=“false”(pageChanged)=“changePage($event)”(numPages)=“numPages=$event”>

] 我想念那个模型文件导入引导

import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
以及根目录的@NgModel导入

NgbModule.forRoot()
编辑:请注意,NgbModule的forRoot()从3.0.0开始就被弃用,并将从4.0.0中删除。相反,建议只导入

NgbModule

我想念那个模型文件导入引导

import {NgbModule} from '@ng-bootstrap/ng-bootstrap';
以及根目录的@NgModel导入

NgbModule.forRoot()
编辑:请注意,NgbModule的forRoot()从3.0.0开始就被弃用,并将从4.0.0中删除。相反,建议只导入

NgbModule

ngb paginations
是ng引导的选择器。您可以添加您正在使用的库链接吗?
ngb paginations
是ng引导的选择器。您可以添加您正在使用的库链接吗?