It seems that in newer versions, in addition to the directive
method, 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 directive
and component
?
When should I use component
instead of directive
?
Before you ask me this: The documentation page is in English, I would like an explanation in Portuguese, which for me is easier.