I read about directives and wondered what the difference between a directive and a component was when I discovered that Angularjs has many components.
There is a function component, type component, service component, filter component, provider component, etc. Then, to complete it, I discovered that the module component is a component consisting of directives, services, filters, providers, templates, global APIs and test layouts. This tended to make things more confusing. I could not find the definition of “component” in the Angular documentation that would explain the differences between the listed types of components.
So what is a “component” in Angularjs? Is this something as simple as multiple blocks of code?
By the way, I am currently using Angular version 1.4.2.
angularjs angularjs-components
James drinkard
source share