What is Selector in Angular and How to use selector in Angular ?
In Angular, a selector is a pattern that matches elements in the HTML template and identifies the component associated with those elements. A component selector is used to specify which component to use for rendering a particular piece of the template.
Selectors are defined in the @Component decorator, which is used to mark a class as an Angular component. The selector property of the decorator is used to specify the CSS selector that identifies the component in the template.
There are three ways to use Selector
Use as HTML element
Use as HTML attribute
Use as Class
How to install bootstrap in Angular ? -- • How to install /use bootstrap in Angu...
What is event in Angular ? -- • What is event in angular ? | Angular ...
What is component in Angular? --- • What is Component in angular? | Angul...
What is Interpolation?? -- • What is Interpolation ? | Angular Tut...
How to create custome component in Angular -- • How to create custom component in Ang...
How to get value from input box in Angular -- • How to get and display value from inp...
#selector
#selectors
#angulartutorial
#angularforbeginners