Question: What is the primary difference between a component and a directive?
- A component uses a selector metadata property and a directive does not.
- A directive can be used for adding custom events to the DOM and a component cannot.
- A component has a template and a directive does not.
- 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.