πŸ“Š 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

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