Concept of Angular

4

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?

    
asked by anonymous 16.05.2017 / 04:21

1 answer

4

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

    
16.05.2017 / 06:36