A

Admin • 825.56K Points
Coach

Q. What is the main difference between components and directives in Angular?

  • (A) Components have templates, directives do not
  • (B) Directives create UI elements, components don’t
  • (C) Components are for styling, directives are for logic
  • (D) No difference
  • Correct Answer - Option(A)
  • Views: 9
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
Components include templates and are UI elements; directives add behavior.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.