M
M
MadmaN132016-02-27 18:42:00
Angular
MadmaN13, 2016-02-27 18:42:00

When to create a component, and when to create a directive?

For what tasks in Angular is a component best suited, and when is a directive? For example, for the authorization window.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-02-28
@MadmaN13

If in terms of the Angular API...
components are custom elements with the behavior
of a directive - decorators for components, roughly speaking attributes for elements that extend the behavior of these.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question