docs: fix typo in component overview (#39425)
Fixes #39424 PR Close #39425
This commit is contained in:
parent
57ead7aa53
commit
3236ae0ee1
|
@ -110,7 +110,7 @@ To create a new component manually:
|
|||
|
||||
## Specifying a component's CSS selector
|
||||
|
||||
Every component requires a CSS _selector_. A selector instructs Angular to instantiate this component wherever it finds the corresponding tag in template HTML. For example, consider a component, `hello-world.component.ts` that defines its selector as `app-hello-world`. This selector instructs angular to instantiate this component any time the tag, `<app-hellow-world>` in a template.
|
||||
Every component requires a CSS _selector_. A selector instructs Angular to instantiate this component wherever it finds the corresponding tag in template HTML. For example, consider a component, `hello-world.component.ts` that defines its selector as `app-hello-world`. This selector instructs angular to instantiate this component any time the tag, `<app-hello-world>` in a template.
|
||||
|
||||
To specify a component's selector, add a `selector` statement to the `@Component` decorator.
|
||||
|
||||
|
|
Loading…
Reference in New Issue