docs(aio): update text InMemoryWebApiModule to HttpClientInMemoryWebApiModule (#23285)

PR Close #23285
This commit is contained in:
Michael Huang 2018-04-10 23:36:28 +10:00 committed by Igor Minar
parent dabc076267
commit 47229fa87b

View File

@ -51,7 +51,7 @@ Install the *In-memory Web API* package from _npm_.
npm install angular-in-memory-web-api@0.5 --save npm install angular-in-memory-web-api@0.5 --save
</code-example> </code-example>
Import the `InMemoryWebApiModule` and the `InMemoryDataService` class, Import the `HttpClientInMemoryWebApiModule` and the `InMemoryDataService` class,
which you will create in a moment. which you will create in a moment.
<code-example <code-example
@ -60,7 +60,7 @@ which you will create in a moment.
title="src/app/app.module.ts (In-memory Web API imports)"> title="src/app/app.module.ts (In-memory Web API imports)">
</code-example> </code-example>
Add the `InMemoryWebApiModule` to the `@NgModule.imports` array&mdash; Add the `HttpClientInMemoryWebApiModule` to the `@NgModule.imports` array&mdash;
_after importing the `HttpClient`_, _after importing the `HttpClient`_,
&mdash;while configuring it with the `InMemoryDataService`. &mdash;while configuring it with the `InMemoryDataService`.