You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 4, 2017. It is now read-only.
Although we made significant *internal* changes to `getHeroes()`, the public signature did not change.
220
220
We still return a !{_Promise}. We won't have to update any of the components that call `getHeroes()`.
221
221
222
-
Our stakeholders are incredibly pleased with the added flexibility from the API integration, but it doesn't stop there. Next, we want the ability to create new heroes and delete heroes.
222
+
Our stakeholders are thrilled with the added flexibility from the API integration.
223
+
Now they want the ability to create and delete heroes.
223
224
224
-
But first, let's see what happens now when we try to update a hero's details.
225
+
Let's see first what happens when we try to update a hero's details.
225
226
226
227
.l-main-section
227
228
:marked
228
229
## Update hero details
229
230
230
-
The hero detail view already allows us to edit a hero's name. Go ahead, try
231
-
it now. As we type, the hero name is updated in the view heading, but
232
-
notice what happens when we hit the `Back` button: the changes are lost!
231
+
We can edit a hero's name already in the hero detail view. Go ahead and try
232
+
it. As we type, the hero name is updated in the view heading.
233
+
But when we hit the `Back` button, the changes are lost!
233
234
234
235
.l-sub-section
235
236
:marked
@@ -348,7 +349,7 @@ block get-heroes-details
348
349
349
350
blockobservables-section-intro
350
351
:marked
351
-
Each `Http` method returns an `Observable` of HTTP `Response` objects.
352
+
Each `Http` service method returns an `Observable` of HTTP `Response` objects.
352
353
353
354
Our `HeroService` converts that `Observable` into a `Promise` and returns the promise to the caller.
354
355
In this section we learn to return the `Observable` directly and discuss when and why that might be
0 commit comments