parent
4acbef19a8
commit
c2c6096bec
|
@ -190,7 +190,7 @@ h2#fetch-data Fetch data with the #[b HeroService]
|
||||||
We pass the resource URL to `get` and it calls the server which should return heroes.
|
We pass the resource URL to `get` and it calls the server which should return heroes.
|
||||||
.l-sub-section
|
.l-sub-section
|
||||||
:marked
|
:marked
|
||||||
It *will* return heroes once we've set up the [in-memory web api](in-mem-web-api)
|
It *will* return heroes once we've set up the [in-memory web api](#in-mem-web-api)
|
||||||
described in the appendix below.
|
described in the appendix below.
|
||||||
Alternatively, we can (temporarily) target a JSON file by changing the endpoint URL:
|
Alternatively, we can (temporarily) target a JSON file by changing the endpoint URL:
|
||||||
+makeExample('server-communication/ts/app/toh/hero.service.ts', 'endpoint-json')(format=".")
|
+makeExample('server-communication/ts/app/toh/hero.service.ts', 'endpoint-json')(format=".")
|
||||||
|
|
Loading…
Reference in New Issue