Skip to content

Commit 777803c

Browse files
aselunarPawel Kozlowski
authored andcommitted
docs: Moving a div down in tutorial toh-pt6.md (#47095)
PR Close #47095
1 parent 8d0d6d9 commit 777803c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

aio/content/tutorial/toh-pt6.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -300,16 +300,6 @@ The component's `delete()` method immediately removes the *hero-to-delete* from
300300

301301
There's really nothing for the component to do with the `Observable` returned by `heroService.deleteHero()` **but it must subscribe anyway**.
302302

303-
<div class="alert is-important">
304-
305-
If you neglect to `subscribe()`, the service can't send the delete request to the server.
306-
As a rule, an `Observable` *does nothing* until something subscribes.
307-
308-
Confirm this for yourself by temporarily removing the `subscribe()`, clicking **Dashboard**, then clicking **Heroes**.
309-
This shows the full list of heroes again.
310-
311-
</div>
312-
313303
Next, add a `deleteHero()` method to `HeroService` like this.
314304

315305
<code-example header="src/app/hero.service.ts (delete)" path="toh-pt6/src/app/hero.service.ts" region="deleteHero"></code-example>
@@ -323,6 +313,16 @@ Notice the following key points:
323313

324314
Refresh the browser and try the new delete capability.
325315

316+
<div class="alert is-important">
317+
318+
If you neglect to `subscribe()`, the service can't send the delete request to the server.
319+
As a rule, an `Observable` *does nothing* until something subscribes.
320+
321+
Confirm this for yourself by temporarily removing the `subscribe()`, clicking **Dashboard**, then clicking **Heroes**.
322+
This shows the full list of heroes again.
323+
324+
</div>
325+
326326
## Search by name
327327

328328
In this last exercise, you learn to chain `Observable` operators together so you can reduce the number of similar HTTP requests to consume network bandwidth economically.

0 commit comments

Comments
 (0)