diff --git a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/_entityFile_.component.ts.ejs b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/_entityFile_.component.ts.ejs index 3e73926c3540..c0fe58bb4cc7 100644 --- a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/_entityFile_.component.ts.ejs +++ b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/_entityFile_.component.ts.ejs @@ -134,7 +134,9 @@ export class <%= componentName %> implements OnInit { <%_ } _%> <%_ if (paginationPagination) { _%> -<%- include('pagination-template'); -%> + itemsPerPage = ITEMS_PER_PAGE; + totalItems = 0; + page = 1; <%_ } else if (paginationInfiniteScroll) { _%> itemsPerPage = ITEMS_PER_PAGE; links: WritableSignal>> = signal({}); diff --git a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/pagination-template.ejs b/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/pagination-template.ejs deleted file mode 100644 index 54f5af9f42da..000000000000 --- a/generators/angular/templates/src/main/webapp/app/entities/_entityFolder_/list/pagination-template.ejs +++ /dev/null @@ -1,21 +0,0 @@ -<%# - Copyright 2013-2024 the original author or authors from the JHipster project. - - This file is part of the JHipster project, see https://www.jhipster.tech/ - for more information. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - https://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. --%> - itemsPerPage = ITEMS_PER_PAGE; - totalItems = 0; - page = 1;