docs(aio): update text InMemoryWebApiModule to HttpClientInMemoryWebApiModule (#23285)
PR Close #23285
This commit is contained in:
parent
993eeababb
commit
f958293205
|
@ -49,7 +49,7 @@ Install the *In-memory Web API* package from _npm_
|
||||||
npm install angular-in-memory-web-api --save
|
npm install angular-in-memory-web-api --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
|
||||||
|
@ -58,7 +58,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…
Reference in New Issue