0
約束POSTなど:角度5 HttpClientを、私はのは、GET角度5で見てきた
get() {
return this.httpClient.get<any>('https://api.github.com/users/seeschweiler');
}
または
http
.get<ItemsResponse>('/api/items')
.subscribe(
// Successful responses call the first callback.
data => {...},
// Errors will call this callback instead:
err => {
console.log('Something went wrong!');
}
);
私は約束は通常、それに使用されていることがわかりません。
これは本当に必要なのか、他の理由によるものなのでしょうか?