summaryrefslogtreecommitdiffstats
path: root/portal-FE-common/src/app/layout/components/footer/footer.component.ts
blob: 9b5cc8f6a0357a7a87af6062b533d73b82a2df4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { Component, OnInit } from '@angular/core';
import { ManifestService } from 'src/app/shared/services';


@Component({
  selector: 'app-footer',
  templateUrl: './footer.component.html',
  styleUrls: ['./footer.component.scss']
})
export class FooterComponent implements OnInit {

  buildVersion: string;
  constructor(private manifest: ManifestService) { }

  ngOnInit() {
    this.buildVersion =  '';
    this.manifestDetails();
  }

  manifestDetails() {
    this.manifest.getManifest().subscribe((_res: any) => {
      this.buildVersion = _res.manifest['Build-Number'];
    }, (_err) => {

    });
  }
}