Project

General

Profile

« Previous | Next » 

Revision 51584

final commit before first deployment

View differences:

help-content.component.ts
30 30

  
31 31
  ngOnInit() {
32 32
    this.errorMessage = null;
33
    this._helpContentService.getActivePageContent( this.router.url ).subscribe(
34
      pageContent => this.shiftThroughContent(pageContent),
35
      error => this.handleError(<any>error)
36
    );
33
    setTimeout(()=>{
34
      this._helpContentService.getActivePageContent( this.router.url ).subscribe(
35
        pageContent => this.shiftThroughContent(pageContent),
36
        error => this.handleError(<any>error)
37
      );
38
    },50);
37 39
  }
38 40

  
39 41
  shiftThroughContent(pageContent: PageContent) {
40 42
    this.contents = pageContent.content[this.position];
41
    console.log(`help-service for ${this.router.url} -> ${this.position} responded: ${JSON.stringify(this.contents)}`);
43
    /*console.log(`help-service for ${this.router.url} -> ${this.position} responded: ${JSON.stringify(this.contents)}`);*/
42 44
  }
43 45

  
44 46
  isPresent() {

Also available in: Unified diff