Hexaware Technologies interview question

Diff between component and directive