dashboard
repositories
activity
search
login
common
/
securis
summary
reflog
commits
tree
compare
forks
blame
|
history
|
raw
|
HEAD
#3527 - Main menu
César Calvo
2017-03-15
199b9ae1c2818713bbb1a33831c46fb505e997d4
[common/securis.git]
/
securis
/
src
/
main
/
webapp
/
src
/
app
/
footer.component.ts
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
28
import { Component } from '@angular/core';
import { BaseRequestOptions, Http } from '@angular/http';
@Component({
selector: 'app-footer',
templateUrl: 'src/app/footer.component.html'
})
export class FooterComponent {
securisVersion : string = '0.0.0';
constructor(
private http: Http,
) {
}
ngOnInit(): void {
//TODO Move to service
this.http.get("version", /* workaround to avoid OPTIONS method request*/ new BaseRequestOptions())
.map((res) => <string>res.json().version)
.subscribe(
version => this.securisVersion = version,
err => this.securisVersion = '0.0.0'
);
}
}