Question: What is the primary difference between a component and a directive?

  1. A component uses a selector metadata property and a directive does not.
  2. A directive can be used for adding custom events to the DOM and a component cannot.
  3. A component has a template and a directive does not.
  4. A directive can target only native DOM elements.

Answer: The correct answer of the above question is Option C:A component has a template and a directive does not.