We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4dd4c7 commit 10ce24dCopy full SHA for 10ce24d
src/main/frontend/src/app/app.component.ts
@@ -14,10 +14,6 @@ export class AppComponent {
14
constructor(private userService: UserService, httpClient: HttpClient) {
15
console.log("init AppComponent");
16
// remote service
17
- httpClient.get('/json').subscribe(result => this.user = result);
18
- }
19
-
20
- echo(): string {
21
- return this.userService.findById(1)
+ userService.findById(1).subscribe(result => this.user = result);
22
}
23
0 commit comments