7
It seems that in more recent versions, in addition to the method directive
, Angular 1 also has a method called component
.
I would like to understand the main differences between one and the other.
What are the main differences between a directive
and a component
?
When should I wear component
instead of a directive
?
Before you ask me this: The documentation page is in English, I would like an explanation in Portuguese, which for me is easier.