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
This commit is contained in:
yerkebulan 2018-02-02 16:06:30 +06:00 committed by Alex Eagle
parent 5b7b208637
commit 5876fb0125

View File

@ -210,10 +210,10 @@ You can get runtime information about the current platform and the `appId` by in
#### Absolute HTTP URLs #### 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`. 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. 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 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. 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: * The `angularCompilerOptions` section guides the AOT compiler:
* `entryModule` - the root module of the server application, expressed as `path/to/file#ClassName`. * `entryModule` - the root module of the server application, expressed as `path/to/file#ClassName`.