Skip to content

Commit 10ce24d

Browse files
committed
Polishing
1 parent d4dd4c7 commit 10ce24d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/frontend/src/app/app.component.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ export class AppComponent {
1414
constructor(private userService: UserService, httpClient: HttpClient) {
1515
console.log("init AppComponent");
1616
// remote service
17-
httpClient.get('/json').subscribe(result => this.user = result);
18-
}
19-
20-
echo(): string {
21-
return this.userService.findById(1)
17+
userService.findById(1).subscribe(result => this.user = result);
2218
}
2319
}

0 commit comments

Comments
 (0)