
[英]Is there any way to create a single page application using angular 7 without using node and npm, can we add npm dependencies in script tag
[英]Is there any way we could add an "Items Per Page" attribute that the user can change on screen, using NgxPaginationModule in angular?
我正在尝试添加一个“每页项目”属性,用户可以根据要求在屏幕上更改该属性,但是使用 NgxPaginationModule,我们只能通过以下代码提供相同的内容:我们不能像我们那样实现下拉菜单使用 MatPaginatorModule?
您可以使用PaginationComponent
的[itemsPerPage]
输入。 这将告诉组件您希望每页显示多少项,从而确定实际应显示多少页。
显示每页项目数量的逻辑与PaginationComponent
无关。 但是文档有这方面的例子。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.