Explain the difference between directive and component in angular. Js?
|1.||It is behavior that has been added to the existing components.||Components have its own view i.e., HTML and styles.|
|2.||There can be multiple directives in one element.||There can be only one component in one element.|
The interviewer will definitely ask this question in the full stack developer interview questions .