Loading…

Explain the difference between directive and component in angular. Js?

S.no Directive Component
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 .

Suggest An Answer

No suggestions avaliable!

Latest post from Full stack developer interview questions

Ask Question