πŸ“Š Angular
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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Components have templates, directives do not

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

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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
63
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
99%
Success Rate