Project

General

Profile

1
import { Component, OnInit } from '@angular/core';
2

    
3
/*DELETE ME LATER*/
4
import { jobsOfUser } from '../../domain/dummyLists';
5

    
6
@Component ({
7
  selector: 'app-compatibility-validation-history',
8
  templateUrl: 'compatibility-validation-history.component.html'
9
})
10

    
11

    
12
export class CompatibilityValidationHistoryComponent  implements OnInit {
13
  jobTypes: string[];
14
  jobsOfUser = jobsOfUser;
15

    
16
  itemsPerPage: number;
17
  noOfPages: number;
18
  currentPageId: number;
19
  totalPages: number;
20

    
21
  constructor() {}
22

    
23
  ngOnInit() {
24
    this.jobTypes = ["Compatibility Test","Registration Request","Workflow Request"];
25
    this.itemsPerPage = 10;
26
    this.currentPageId = 1;
27
  }
28

    
29
  getItemsPerPage(num: number){
30
    this.itemsPerPage = num;
31
    console.log(`I got ${num}`);
32
  }
33
}
(10-10/13)