InterviewSolution
Saved Bookmarks
| 1. |
What are the difference between directive and component in angular 4? |
|
Answer» In Angular 4, components have their view, whereas directives are just “behavior” added to the existing components and ELEMENTS. Simplifying it, components EXTEND directives. There can be many directives on a host ELEMENT, but only one COMPONENT. |
|