Skip to content

Commit a8179fa

Browse files
authored
Merge pull request eugenp#594 from jesus-dayo/master
Fix pagination in Angular app.js, previously was not working
2 parents 2817953 + 7450955 commit a8179fa

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
server.contextPath=/StudentDirectory
1+
server.contextPath=/

‎spring-rest-angular-pagination/src/main/webapp/view/app.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ app.controller('StudentCtrl', ['$scope','StudentService', function ($scope,Stude
1717
paginationPageSizes: [5, 10, 20],
1818
paginationPageSize: paginationOptions.pageSize,
1919
enableColumnMenus:false,
20+
useExternalPagination: true,
2021
columnDefs: [
2122
{ name: 'studentId' },
2223
{ name: 'name' },

‎spring-rest-angular-pagination/src/test/java/org/baeldung/web/service/StudentServiceTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
@IntegrationTest("server.port:8888")
2020
public class StudentServiceTest {
2121

22-
private static final String ENDPOINT = "http://localhost:8888/StudentDirectory/student/get";
22+
private static final String ENDPOINT = "http://localhost:8888/student/get";
2323

2424
@Test
2525
public void givenRequestForStudents_whenPageIsOne_expectContainsNames() {

0 commit comments

Comments
 (0)