Skip to content

Commit 109366e

Browse files
luangongAndrewKushnir
authored andcommitted
docs: use correct heading in templates guide (angular#58101)
PR Close angular#58101
1 parent 186b524 commit 109366e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

adev/src/content/guide/templates/whitespace.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ In this example, the browser displays only a single space between "Hello" and "w
4444
See [How whitespace is handled by HTML, CSS, and in the DOM](https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Whitespace) for more context on how this works.
4545

4646
Angular avoids sending these unnecessary whitespace characters to the browser in the first place by collapsing them to a single character when it compiles the template.
47-
Preserving whitespace
47+
48+
## Preserving whitespace
49+
4850
You can tell Angular to preserve whitespace in a template by specifying `preserveWhitespaces: true` in the `@Component` decorator for a template.
4951

5052
```angular-ts

0 commit comments

Comments
 (0)