Project

General

Profile

« Previous | Next » 

Revision 44976

add new css template | add nav, bottom, aside bar for main app | add loading message in search pages

View differences:

publication.component.ts
21 21
  public showAllFundedBy: boolean = false;
22 22
  public showAllPublishedIn: boolean = false;
23 23

  
24
  public start ;public end ;
25
  constructor (private _publicationService: PublicationService, private route: ActivatedRoute) {
26
    this.start = new Date().getTime();
27
  }
24
   constructor (private _publicationService: PublicationService, private route: ActivatedRoute) {
25
   }
28 26
  ngOnInit() {
29 27
    this.sub =  this.route.queryParams.subscribe(data => {
30 28
      this.articleId = data['articleId'];
......
34 32
      }else{
35 33
        console.info("Article id not found");
36 34
      }
37
      this.end = new Date().getTime();
38
      var time = this.end - this.start;
39
      console.log('ngOnInit:Execution time: ' + time);
40 35

  
41 36
  });
42 37
}
43 38

  
44 39
ngAfterContentInit() {
45
  this.end = new Date().getTime();
46
  var time = this.end - this.start;
47
  console.log('ngAfterContentInit:Execution time: ' + time);
40

  
48 41
 }
49 42

  
50
ngAfterViewChecked() {
51
  // console.info("indentifiers:"+(this.publicationInfo != undefined&& this.publicationInfo.identifiers!= undefined)?this.publicationInfo.identifiers.size:"-");
52 43

  
53
  this.end = new Date().getTime();
54
  var time = this.end - this.start;
55
  console.log('ngAfterViewChecked: Execution time: ' + time);
56
 }
57

  
58 44
  ngOnDestroy() {
59 45
    this.sub.unsubscribe();
60 46
  }

Also available in: Unified diff