Selector
noun
say it: “suh-LEK-ter” /səˈlɛktər/
The custom HTML tag that places an Angular component on a page, such as app-price-tag.
What is Selector?
A component's selector is the custom HTML tag name you use to place it on a page. A component with selector: 'app-weather' is used as <app-weather />.
<!-- in a parent template -->
<app-weather city="Denver" />
In a sentence
- “The selector app-price-tag lets me write <app-price-tag> in any template.”
Level: Novice · More Angular terms at this level
Updated