You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ Avoid the hassle of intercepting multiple http calls and manufacturing sequences
52
52
The in-memory data store resets for each test so there is no cross-test data pollution.
53
53
54
54
* End-to-end tests. If you can toggle the app into test mode
55
-
using the in-mem web api, you won't disturb the real database.
55
+
using the in-memory web api, you won't disturb the real database.
56
56
This can be especially useful for CI (continuous integration) builds.
57
57
58
58
@@ -152,15 +152,15 @@ export class AppModule { ... }
152
152
153
153
**_Notes_**
154
154
155
-
* Always import the `InMemoryWebApiModule`_after_ the `HttpClientModule` to ensure that
156
-
the in-memory backed provider supersedes the Angular version.
155
+
* Always import the `HttpClientInMemoryWebApiModule`_after_ the `HttpClientModule`
156
+
to ensure that the in-memory backend provider supersedes the Angular version.
157
157
158
158
* You can setup the in-memory web api within a lazy loaded feature module by calling the `.forFeature` method as you would `.forRoot`.
159
159
160
160
* The `createDb` method can be synchronous or asynchronous.
161
161
so you can initialize your in-memory database service from a JSON file.
162
162
Return the database object, an observable of that object, or a promise of that object.
163
-
The in-mem web api service calls `createDb` (a) when it handles the _first_`HttpClient` (or `Http`) request and (b) when it receives a `POST resetdb` request.
163
+
The in-memory web api service calls `createDb` (a) when it handles the _first_`HttpClient` (or `Http`) request and (b) when it receives a `POST resetdb` request.
0 commit comments