9b5cc8f6a0357a7a87af6062b533d73b82a2df4e
[portal.git] / portal-FE-common / src / app / layout / components / footer / footer.component.ts
1 import { Component, OnInit } from '@angular/core';
2 import { ManifestService } from 'src/app/shared/services';
3
4
5 @Component({
6   selector: 'app-footer',
7   templateUrl: './footer.component.html',
8   styleUrls: ['./footer.component.scss']
9 })
10 export class FooterComponent implements OnInit {
11
12   buildVersion: string;
13   constructor(private manifest: ManifestService) { }
14
15   ngOnInit() {
16     this.buildVersion =  '';
17     this.manifestDetails();
18   }
19
20   manifestDetails() {
21     this.manifest.getManifest().subscribe((_res: any) => {
22       this.buildVersion = _res.manifest['Build-Number'];
23     }, (_err) => {
24
25     });
26   }
27 }