Revision 50469
Added by Myrto Koukouli over 6 years ago
compatibility-validation-history.component.ts | ||
---|---|---|
1 | 1 |
import { Component, OnInit } from '@angular/core'; |
2 | 2 |
|
3 |
/*DELETE ME LATER*/ |
|
4 |
import { jobsOfUser } from '../../domain/dummyLists'; |
|
5 |
|
|
3 | 6 |
@Component ({ |
4 | 7 |
selector: 'app-compatibility-validation-history', |
5 | 8 |
templateUrl: 'compatibility-validation-history.component.html' |
6 | 9 |
}) |
7 | 10 |
|
11 |
|
|
8 | 12 |
export class CompatibilityValidationHistoryComponent implements OnInit { |
9 | 13 |
jobTypes: string[]; |
14 |
jobsOfUser = jobsOfUser; |
|
10 | 15 |
|
16 |
itemsPerPage: number; |
|
17 |
noOfPages: number; |
|
18 |
currentPageId: number; |
|
19 |
totalPages: number; |
|
20 |
|
|
11 | 21 |
constructor() {} |
12 | 22 |
|
13 | 23 |
ngOnInit() { |
14 | 24 |
this.jobTypes = ["Compatibility Test","Registration Request","Workflow Request"]; |
25 |
this.itemsPerPage = 10; |
|
26 |
this.currentPageId = 1; |
|
15 | 27 |
} |
28 |
|
|
29 |
getItemsPerPage(num: number){ |
|
30 |
this.itemsPerPage = num; |
|
31 |
console.log(`I got ${num}`); |
|
32 |
} |
|
16 | 33 |
} |
Also available in: Unified diff
continued with compatibility validate