From 505ae752b61a44ca41396838a49f83cfe7badb3b Mon Sep 17 00:00:00 2001 From: yerkebulan Date: Fri, 2 Feb 2018 16:06:30 +0600 Subject: [PATCH] docs(aio): update deprecated Http reference to HttpClientModule, remove Http reference because another context is used (#21984) docs(aio): change HttpClientModule reference to HttpClient docs(aio): capitalize Http to HTTP docs(aio): fix typo mistake in 'universal' guide docs(aio): gets rid of the parentheses and the "e.g." in 'universal' guide PR Close #21984 --- aio/content/guide/universal.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aio/content/guide/universal.md b/aio/content/guide/universal.md index 3fecd8c9a8..746299e07c 100644 --- a/aio/content/guide/universal.md +++ b/aio/content/guide/universal.md @@ -210,10 +210,10 @@ You can get runtime information about the current platform and the `appId` by in #### Absolute HTTP URLs -The tutorial's `HeroService` and `HeroSearchService` delegate to the Angular `Http` module to fetch application data. +The tutorial's `HeroService` and `HeroSearchService` delegate to the Angular `HttpClient` module to fetch application data. These services send requests to _relative_ URLs such as `api/heroes`. -In a Universal app, `Http` URLs must be _absolute_ (e.g., `https://my-server.com/api/heroes`) +In a Universal app, HTTP URLs must be _absolute_, for example, `https://my-server.com/api/heroes` even when the Universal web server is capable of handling those requests. You'll have to change the services to make requests with absolute URLs when running on the server @@ -416,7 +416,7 @@ Create a `tsconfig.server.json` file in the project root directory to configure This config extends from the root's `tsconfig.json` file. Certain settings are noteworthy for their differences. -* The `module` property must be **commonjs** which can be require()'d into our server application. +* The `module` property must be **commonjs** which can be required into our server application. * The `angularCompilerOptions` section guides the AOT compiler: * `entryModule` - the root module of the server application, expressed as `path/to/file#ClassName`.