Project

General

Profile

« Previous | Next » 

Revision 51584

final commit before first deployment

View differences:

sr-journal.component.ts
7 7
import {ActivatedRoute, Params, Router} from "@angular/router";
8 8
import {MyArray} from "../../../shared/reusablecomponents/forms/my-array.interface";
9 9
import {noInterfacesSaved} from "../../../domain/shared-messages";
10
import {
11
  AsideHelpContentComponent,
12
  HelpContentComponent
13
} from "../../../shared/reusablecomponents/help-content.component";
10 14

  
11 15
@Component ({
12 16
  selector: 'app-sr-journal',
......
39 43
   * the param that is used is 'step' and the values are: 'basicInformation','interfaces','finish'
40 44
   */
41 45
  queryParams: Params = Object.assign({}, this.route.snapshot.queryParams);
46
  @ViewChild('topHelperContent')
47
  public topHelperContent: HelpContentComponent;
48
  @ViewChild('leftHelperContent')
49
  public leftHelperContent: AsideHelpContentComponent;
50
  @ViewChild('rightHelperContent')
51
  public rightHelperContent: AsideHelpContentComponent;
52
  @ViewChild('bottomHelperContent')
53
  public bottomHelperContent: HelpContentComponent;
42 54

  
43 55
  constructor(
44 56
    private fb: FormBuilder,
45 57
    private route: ActivatedRoute,
46
    private router: Router,) {}
58
    private router: Router) {}
47 59

  
48 60
  ngOnInit() {
49 61
    this.setQueryParam('basicInformation');
......
97 109
    // set param for step
98 110
    this.queryParams['step'] = value;
99 111
    this.router.navigate([], { relativeTo: this.route, queryParams: this.queryParams });
112
    this.rightHelperContent.ngOnInit();
113
    this.topHelperContent.ngOnInit();
114
    this.leftHelperContent.ngOnInit();
115
    this.bottomHelperContent.ngOnInit();
100 116
  }
101 117

  
102 118
}

Also available in: Unified diff