Hello again, everyone.
So are you excited?
I am, because in this section, we're going to try to understand the components and their properties.
Now we've learned to work with styles and templates in the last few lessons.
So in this lesson, I really want to get into that selecter in the TIPS file.
Now, we know that The Selecter in this component decorator is what we use and other component files
to indicate this component and this selecter must be unique because if there are more than one selecter,
of course, with the same name, you're going to get some problems.
Now, it might be a little of a challenge to understand which feature is which component.
So you just got to stay sharp, all right, and pay attention to this, I'll make sure that you do.
Now, there's one more thing that we need to know about using Selecter or get into the nitty gritty.
We already talked about this while, you know, talking about selecter, introducing selecter.
Up until now, we've used selecter just like an element.
And what we wanted to call our component, we wrote The Selecter definition like that.
However, do you remember did I mention that this has different definitions and different writing?
So I'll show you by examining this and a little more detail.
So hopefully you can see this now defining The Selecter as an element, and I've called it in other
places like that.
And now here I come and put in a dot in front of The Selecter definition, I'm going to say the change.
And I get an error when I look at the browser.
That's our trouble.
Because Angular no longer knows which component is what.
Actually, we define The Selecter as a class, but we used it as an element.
So if we call it as a class and a div like this, where I call it.
The problem will disappear because now will use it as a class.
All right, so another definition can be an attribute definition.
So I'll I'll define this in square brackets where we define a selecter.
And then we will use it as an attribute in the place that we were just using.
So in other words, using The Selecter as I.D. is a bit of a problem because Angular might not be able
to recognize it.
So just know this is how they're defined.
So that is a general description for an element and this is the way we use it.
I wanted you to be able to see what happens when you encounter in different places and the selectors,
certainly one of the essential properties that identifies each component uniquely.
So just keep in mind, we have to use elector's very carefully, and most of the time they're used as
elements.
But also I wanted to share this information so that you can figure that out when you're using selectors.
All right.
So I'll see in the next lesson.