docs(aio): fix swap value (#20905)
'http.get' has been swapped in for 'of' PR Close #20905
This commit is contained in:
parent
adb1d62967
commit
f0396f1e54
@ -135,7 +135,7 @@ Convert that method to use `HttpClient`
|
|||||||
Refresh the browser. The hero data should successfully load from the
|
Refresh the browser. The hero data should successfully load from the
|
||||||
mock server.
|
mock server.
|
||||||
|
|
||||||
You've swapped `http.get` for `of` and the app keeps working without any other changes
|
You've swapped `of` for `http.get` and the app keeps working without any other changes
|
||||||
because both functions return an `Observable<Hero[]>`.
|
because both functions return an `Observable<Hero[]>`.
|
||||||
|
|
||||||
### Http methods return one value
|
### Http methods return one value
|
||||||
|
Loading…
x
Reference in New Issue
Block a user