mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
docs: add missing space before decorator link in components guide
The `@Component` inline-code span was directly adjacent to the
`[decorator](...)` link, rendering as a mashed-together token in the
source. Added a space so it reads "A `@Component` [decorator] that..."
as intended.
(cherry picked from commit a4e9ff1e0c)
This commit is contained in:
@@ -8,7 +8,7 @@ Components are the main building blocks of Angular applications. Each component
|
||||
|
||||
Every component has a few main parts:
|
||||
|
||||
1. A `@Component`[decorator](https://www.typescriptlang.org/docs/handbook/decorators.html) that contains some configuration used by Angular.
|
||||
1. A `@Component` [decorator](https://www.typescriptlang.org/docs/handbook/decorators.html) that contains some configuration used by Angular.
|
||||
2. An HTML template that controls what renders into the DOM.
|
||||
3. A [CSS selector](https://developer.mozilla.org/docs/Learn/CSS/Building_blocks/Selectors) that defines how the component is used in HTML.
|
||||
4. A TypeScript class with behaviors, such as handling user input or making requests to a server.
|
||||
|
||||
Reference in New Issue
Block a user