Migrated project to Kotlin and created a new frontend
This commit is contained in:
22
frontend/src/app/status/status.component.ts
Normal file
22
frontend/src/app/status/status.component.ts
Normal 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);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user