Concept of Angular System

Asked

Viewed 1,777 times

4

Well, I started studying Angular (2 and 4) and I was a little lost in a few moments, the "Component" so cited as something essential confuses me a lot. After all what the concept or what is a Component?

1 answer

4


A component is a simplified "version" of a directive, which are basically markers or extensions of elements that make up the GIFT, these markers inform Angularjs to insert some functionality specific to this element.

One of the main advantages of the use of components is to create snippets of code reusable in a trivial way, which replaces the creation of directives with 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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.