Different Selectors in Angular | Components | Angular 12+

preview_player
Показать описание
So, far we have used selector of a component like an HTML attribute. But it is also possible to use a selector like an HTML attribute or like a CSS class.

In this lecture, let's learn what are different types of selector and how to create different types of selector in Angular.
Рекомендации по теме
Комментарии
Автор

I've been looking for a angular course for a week, until I found yours. Definitely the best on youtube. A big thank you from canada

mohamedelaminelakhal
Автор

The idea here sounds terrific but why would you want to do that? What would be some indications for making the selector an attribute or a CSS file?

JD-vooe
Автор

Thank you so much for your content. I accidentally run across one of your videos and learn some features that I did not even suspect exists. Great job and nice style - short and to the point.

billbortkevich
Автор

Thankyou sir,
Sir we can also use the selector as html id attribute also "id".
selector: '#app-nav',
<div id="app-nav"></div>

srikanthambaldhage
Автор

Hi!, Could you please elaborate any practical usages of these selectors.

mohmedhumaid