@@ -97,10 +97,12 @@ block backend
9797 The `InMemoryWebApiModule` replaces the default `Http` client backend —
9898 the supporting service that talks to the remote server —
9999 with an _in-memory web API alternative service_.
100+
100101 + makeExcerpt(_appModuleTsVsMainTs, 'in-mem-web-api' , '' )
102+
101103 :marked
102104 The `forRoot` configuration method takes an `InMemoryDataService` class
103- that will prime the in-memory database as follows:
105+ that primes the in-memory database as follows:
104106
105107+ makeExample('app/in-memory-data.service.ts' , 'init' )( format ='.' )
106108
@@ -126,7 +128,7 @@ block dont-be-distracted-by-backend-subst
126128
127129:marked
128130 We returned a !{_Promise} resolved with mock heroes.
129- It may have seemed like an overkill at the time, but we were anticipating the
131+ It may have seemed like overkill at the time, but we were anticipating the
130132 day when we fetched heroes with an HTTP client and we knew that would have to be an asynchronous operation.
131133
132134 That day has arrived! Let's convert `getHeroes()` to use HTTP.
@@ -140,7 +142,7 @@ block dont-be-distracted-by-backend-subst
140142
141143- var _h3id = ` http-${ _promise} `
142144:marked
143- Refresh the browser and the hero data should be successfully loaded from the
145+ Refresh the browser, and the hero data should be successfully loaded from the
144146 mock server.
145147
146148 <h3 id="!{_h3id}">HTTP !{_Promise}</h3>
@@ -336,7 +338,7 @@ block get-heroes-details
336338:marked
337339 ### Hero service `delete` method
338340
339- The delete HTTP method will be used to delete heroes and its invocation is like to `put` except for the method name :
341+ The hero service's ` delete` method uses the _delete_ HTTP method to remove the hero from the server :
340342
341343+ makeExcerpt('app/hero.service.ts' , 'delete' )
342344
@@ -509,7 +511,8 @@ block observable-transformers
509511- var _declarations = _docsFor == ' dart' ? ' directives' : ' declarations'
510512- var declFile = _docsFor == ' dart' ? ' app/dashboard.component.ts' : ' app/app.module.ts'
511513:marked
512- And finally, we import the `HeroSearchComponent` from `'./hero-search.component.ts'`
514+ And finally, we import `HeroSearchComponent` from
515+ <span ngio-ex>hero-search.component.ts</span>
513516 and add it to the `!{_declarations}` !{_array}:
514517
515518+ makeExcerpt(declFile, 'search' )
0 commit comments