Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit bafc01f

Browse files
committed
post-review updates
1 parent de845bf commit bafc01f

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

public/docs/ts/_cache/tutorial/toh-pt6.jade

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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')

public/docs/ts/latest/tutorial/toh-pt6.jade

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,12 @@ block backend
9797
The `InMemoryWebApiModule` replaces the default `Http` client backend &mdash;
9898
the supporting service that talks to the remote server &mdash;
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

Comments
 (0)