mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: fix grammer in preserve whitespaces notes (#49928)
This commit fixes some grammer in preserve whitespaces notes. PR Close #49928
This commit is contained in:
committed by
Jessica Janiuk
parent
a803bb5df3
commit
e036c914e7
@@ -37,7 +37,7 @@ Do not use this option outside of the Bazel rules.
|
||||
|
||||
Modifies how Angular-specific annotations are emitted to improve tree-shaking.
|
||||
Non-Angular annotations are not affected.
|
||||
One of `static fields` or `decorators`. The default value is `static fields`.
|
||||
One of `static fields` or `decorators`. The default value is `static fields`.
|
||||
|
||||
* By default, the compiler replaces decorators with a static field in the class, which allows advanced tree-shakers like [Closure compiler](https://github.com/google/closure-compiler) to remove unused classes
|
||||
* The `decorators` value leaves the decorators in place, which makes compilation faster.
|
||||
@@ -167,7 +167,7 @@ Set to `true` to preserve blank text nodes.
|
||||
|
||||
<div class="alert is-helpful">
|
||||
|
||||
When using hydration, it is recommended that you use `preserveWhitespaces: false`, which is the default value. If you choose to enable preserving whitespaces by adding `preserveWhitespaces: true` to you tsconfig, it is possible you may encounter issues with hydration. This is not yet a fully supported configuration. Ensure this is also consistently set between the server and client tsconfig files. See the [hydration guide](guide/hydration#preserve-whitespaces) for more details.
|
||||
When using hydration, it is recommended that you use `preserveWhitespaces: false`, which is the default value. If you choose to enable preserving whitespaces by adding `preserveWhitespaces: true` to your tsconfig, it is possible you may encounter issues with hydration. This is not yet a fully supported configuration. Ensure this is also consistently set between the server and client tsconfig files. See the [hydration guide](guide/hydration#preserve-whitespaces) for more details.
|
||||
|
||||
</div>
|
||||
|
||||
@@ -253,4 +253,4 @@ Besides the configuration file, you can also use [`tsc` command line options](ht
|
||||
|
||||
<!-- end links -->
|
||||
|
||||
@reviewed 2022-02-28
|
||||
@reviewed 2023-04-19
|
||||
|
||||
@@ -75,7 +75,7 @@ Hydration imposes a few constraints on your application that are not present wit
|
||||
|
||||
<div class="alert is-important">
|
||||
|
||||
The HTML produced by the server side rendering operation **must not** be altered between the server and the client.
|
||||
The HTML produced by the server side rendering operation **must not** be altered between the server and the client.
|
||||
|
||||
</div>
|
||||
|
||||
@@ -104,7 +104,7 @@ When using the hydration feature, we recommend using the default setting of `fal
|
||||
|
||||
<div class="alert is-helpful">
|
||||
|
||||
Make sure that this setting is set **consistently** in both your `tsconfig.server.json` for you server side and `tsconfig.app.json` for you client side. A mismatched value will cause hydration to break.
|
||||
Make sure that this setting is set **consistently** in both `tsconfig.server.json` for your server side and `tsconfig.app.json` for your client side. A mismatched value will cause hydration to break.
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user