Well, I started studying Angular (2 and 4) and I was a bit lost in a few moments, the component much quoted as something essential confused me a lot. After all what is the concept or what is a component?
Well, I started studying Angular (2 and 4) and I was a bit lost in a few moments, the component much quoted as something essential confused me a lot. After all what is the concept or what is a component?
A component is a simplified "version" of a directive , which are basically markers or extensions of elements that make up the DOM , these markers tell AngularJS to insert some functionality specific to this element.
One of the main advantages of using competent is to create reusable code snippets in a trivial way, which replaces the creation of more complex configurations.
Here is an example of how a component works in practice: plunker component
References: docs.angularjs components , using-component-no-angular-1-5