Categories
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
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 a Question
731 491 924 answers to any question