Skip to content

Commit d29f4bf

Browse files
Remove example app from frontend
1 parent 9f5691b commit d29f4bf

1 file changed

Lines changed: 2 additions & 20 deletions

File tree

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,9 @@
1-
import { HttpClient } from "@angular/common/http";
2-
import { Component, OnInit } from "@angular/core";
3-
import { map } from "rxjs";
1+
import { Component } from "@angular/core";
42

53
@Component({
64
selector: "la-home",
75
templateUrl: "./home.component.html",
86
styleUrls: ["./home.component.scss"],
97
standalone: true,
108
})
11-
export class HomeComponent implements OnInit {
12-
public hooray?: string;
13-
14-
constructor(private http: HttpClient) {}
15-
16-
ngOnInit(): void {
17-
// This call is executed on the server and in the browser.
18-
this.http
19-
.get<{ message: string }[]>(`/api/example/`)
20-
.pipe(map((hoorays) => hoorays[0].message))
21-
.subscribe((hooray) => {
22-
if (!this.hooray) {
23-
this.hooray = hooray;
24-
}
25-
});
26-
}
27-
}
9+
export class HomeComponent {}

0 commit comments

Comments
 (0)