πŸ“Š Angular
Q. What is the difference between a structural directive and an attribute directive in Angular?
  • (A) Structural directives change the DOM layout, attribute directives change appearance or behavior
  • (B) Attribute directives change the DOM layout, structural directives change appearance
  • (C) Both are the same
  • (D) Structural directives only work with forms
πŸ’¬ Discuss
βœ… Correct Answer: (A) Structural directives change the DOM layout, attribute directives change appearance or behavior

Explanation: Structural directives add or remove elements; attribute directives modify existing elements.

Explanation by: Mr. Dubey
Structural directives add or remove elements; attribute directives modify existing elements.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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