Migrated project to Kotlin and created a new frontend

This commit is contained in:
2017-12-08 07:27:42 +01:00
parent e362cb1251
commit 46f911c075
102 changed files with 1924 additions and 2675 deletions

View File

@@ -0,0 +1,22 @@
import {Component, OnInit} from '@angular/core';
import {HttpClient} from '@angular/common/http';
@Component({
selector: 'app-status',
templateUrl: './status.component.html',
styleUrls: ['./status.component.scss']
})
export class StatusComponent implements OnInit {
status: string;
constructor(private http: HttpClient) {
}
ngOnInit() {
this.http.get('http://localhost:8080/status').subscribe(data => {
this.status = JSON.stringify(data, null, 2);
});
}
}