fix: 把()替换为半角()

This commit is contained in:
Zhicheng WANG 2021-02-06 10:38:20 +08:00
parent 45890e6df8
commit e856d02da7
2 changed files with 2 additions and 2 deletions

View File

@ -501,7 +501,7 @@ This option is the least intrusive as it does not require any changes to the app
Here, "request URL" refers to the URL of the request as a response to which the app is being rendered on the server. Here, "request URL" refers to the URL of the request as a response to which the app is being rendered on the server.
For example, if the client requested `https://my-server.com/dashboard` and you are rendering the app on the server to respond to that request, `options.url` should be set to `https://my-server.com/dashboard`. For example, if the client requested `https://my-server.com/dashboard` and you are rendering the app on the server to respond to that request, `options.url` should be set to `https://my-server.com/dashboard`.
建议的解决方案是将完整的请求 URL 传给 [renderModule](api/platform-server/renderModule) 或 [renderModuleFactory](api/platform-server/renderModuleFactory) 的 `options` 参数(具体取决于你在服务器上渲染 `AppServerModule` 的目的)。此选项的侵入性最小,因为它不需要对应用进行任何更改。这里的“请求 URL” 是指当应用在服务器上渲染时的地址。例如,如果客户端请求了 `https://my-server.com/dashboard` 并且要在服务器上渲染该应用以响应该请求,那么 `options.url` 应设置为 `https://my-server.com/dashboard` 建议的解决方案是将完整的请求 URL 传给 [renderModule()](api/platform-server/renderModule) 或 [renderModuleFactory()](api/platform-server/renderModuleFactory) 的 `options` 参数(具体取决于你在服务器上渲染 `AppServerModule` 的目的)。此选项的侵入性最小,因为它不需要对应用进行任何更改。这里的“请求 URL” 是指当应用在服务器上渲染时的地址。例如,如果客户端请求了 `https://my-server.com/dashboard` 并且要在服务器上渲染该应用以响应该请求,那么 `options.url` 应设置为 `https://my-server.com/dashboard`
Now, on every HTTP request made as part of rendering the app on the server, Angular can correctly resolve the request URL to an absolute URL, using the provided `options.url`. Now, on every HTTP request made as part of rendering the app on the server, Angular can correctly resolve the request URL to an absolute URL, using the provided `options.url`.

View File

@ -129,7 +129,7 @@ To understand how change detection works, first consider when the application ne
1. Component initialization. For example, when bootstrapping an Angular application, Angular loads the bootstrap component and triggers the [ApplicationRef.tick()](api/core/ApplicationRef#tick) to call change detection and View Rendering. 1. Component initialization. For example, when bootstrapping an Angular application, Angular loads the bootstrap component and triggers the [ApplicationRef.tick()](api/core/ApplicationRef#tick) to call change detection and View Rendering.
组件初始化。例如,当引导 Angular 应用程序时Angular 会加载引导组件并触发 [ApplicationRef.tick](api/core/ApplicationRef#tick) 来调用变更检测和视图渲染。 组件初始化。例如,当引导 Angular 应用程序时Angular 会加载引导组件并触发 [ApplicationRef.tick()](api/core/ApplicationRef#tick) 来调用变更检测和视图渲染。
1. Event listener. The DOM event listener can update the data in an Angular component and also trigger change detection, as in the following example. 1. Event listener. The DOM event listener can update the data in an Angular component and also trigger change detection, as in the following example.