docs: change links to in-memory-web-api in github/angular repo (#40203)

In #37182 the in-memory-web-api module was moved into this repo.
Make links in the docs point to the new location of the in-memory-web-api.

Fixes #40190

PR Close #40203
This commit is contained in:
sijmenhuizenga 2021-01-06 23:16:55 +02:00 committed by Andrew Scott
parent 4f73820ad6
commit acb1162d91
3 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@ You can run the <live-example></live-example> that accompanies this guide.
The sample app does not require a data server.
It relies on the
[Angular _in-memory-web-api_](https://github.com/angular/in-memory-web-api/blob/master/README.md),
[Angular _in-memory-web-api_](https://github.com/angular/angular/tree/master/packages/misc/angular-in-memory-web-api),
which replaces the _HttpClient_ module's `HttpBackend`.
The replacement service simulates the behavior of a REST-like backend.

View File

@ -31,7 +31,7 @@ Next, still in the `AppModule`, add `HttpClient` to the `imports` array:
## Simulate a data server
This tutorial sample mimics communication with a remote data server by using the
[In-memory Web API](https://github.com/angular/in-memory-web-api "In-memory Web API") module.
[In-memory Web API](https://github.com/angular/angular/tree/master/packages/misc/angular-in-memory-web-api "In-memory Web API") module.
After installing the module, the app will make requests to and receive responses from the `HttpClient`
without knowing that the *In-memory Web API* is intercepting those requests,

View File

@ -233,11 +233,11 @@ describe('site App', () => {
expect(await page.ghLinks.get(0).getAttribute('href'))
.toMatch(/https:\/\/github\.com\/angular\/angular\/edit\/master\/aio\/content\/tutorial\/toh-pt1\.md\?message=docs%3A%20describe%20your%20change\.\.\./);
await page.navigateTo('guide/http');
await page.navigateTo('guide/router');
expect(await page.ghLinks.count()).toEqual(1);
/* tslint:disable:max-line-length */
expect(await page.ghLinks.get(0).getAttribute('href'))
.toMatch(/https:\/\/github\.com\/angular\/angular\/edit\/master\/aio\/content\/guide\/http\.md\?message=docs%3A%20describe%20your%20change\.\.\./);
.toMatch(/https:\/\/github\.com\/angular\/angular\/edit\/master\/aio\/content\/guide\/router\.md\?message=docs%3A%20describe%20your%20change\.\.\./);
});
it('should not be present on top level pages', async () => {