dashboard
repositories
activity
search
login
common
/
securis
summary
reflog
commits
tree
compare
forks
blame
|
history
|
raw
|
HEAD
Merge branch 'angular2' of https://rsanchez@git.curisit.net/gitblit/git/com...
rsanchez
2017-03-15
259d989404ffbb541b26d7fb687581e2b57111ae
[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'
);
}
}