Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit 3a1d7ab

Browse files
committed
doc: Fix Angular way example
1 parent 54d762b commit 3a1d7ab

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

demo/src/app/basic/angular-way-snippet.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ export class AngularWayComponent implements OnInit {
6464
6565
ngOnInit(): void {
6666
this.dtOptions = {
67-
paginationType: 'full_numbers',
68-
displayLength: 2
67+
pagingType: 'full_numbers',
68+
pageLength: 2
6969
};
7070
this.http.get('data/data.json')
7171
.map(this.extractData)

demo/src/app/basic/angular-way.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export class AngularWayComponent implements OnInit {
2525

2626
ngOnInit(): void {
2727
this.dtOptions = {
28-
pagingType: 'full_numbers'
28+
pagingType: 'full_numbers',
29+
pageLength: 2
2930
};
3031
this.http.get('data/data.json')
3132
.map(this.extractData)

0 commit comments

Comments
 (0)