docs(aio): update text InMemoryWebApiModule to HttpClientInMemoryWebApiModule (#23285)
PR Close #23285
This commit is contained in:
parent
dabc076267
commit
47229fa87b
@ -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—
|
Add the `HttpClientInMemoryWebApiModule` to the `@NgModule.imports` array—
|
||||||
_after importing the `HttpClient`_,
|
_after importing the `HttpClient`_,
|
||||||
—while configuring it with the `InMemoryDataService`.
|
—while configuring it with the `InMemoryDataService`.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user