Q. What is ViewEncapsulation in Angular?

  • (A) It determines how styles are applied to components
  • (B) It controls DOM rendering
  • (C) It prevents XSS attacks
  • (D) It hides variables from templates
πŸ’¬ Discuss
βœ… Correct Answer: (A) It determines how styles are applied to components
Explanation: ViewEncapsulation controls whether component styles are scoped or global.
Explanation by: Mr. Dubey
ViewEncapsulation controls whether component styles are scoped or global.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
87
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
93%
Success Rate