subsystem-item.component.ts 699 Bytes
Newer Older
Vitali Stupin's avatar
Initial    
Vitali Stupin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { Component, OnInit, Input } from '@angular/core';
import { Subsystem } from '../../subsystem';
import { MethodsService } from '../../methods.service';

@Component({
  selector: 'app-subsystem-item',
  templateUrl: './subsystem-item.component.html',
  styleUrls: ['./subsystem-item.component.css']
})
export class SubsystemItemComponent implements OnInit {

  @Input() subsystem: Subsystem;
  subsystemName: string;
  isHidden: boolean = true;

  constructor(private methodsService: MethodsService) { }

  ngOnInit() {
    this.subsystemName = this.subsystem.xRoadInstance + '/' + this.subsystem.memberClass
      + '/' + this.subsystem.memberCode + '/' + this.subsystem.subsystemCode
  }

}