Q. What is the purpose of the 'ng-template' element in Angular?

  • (A) To create standalone components
  • (B) To hold reusable HTML code
  • (C) To mark content for dynamic rendering
  • (D) To style child components
πŸ’¬ Discuss
βœ… Correct Answer: (C) To mark content for dynamic rendering
Explanation: ng-template holds content that will be rendered conditionally or dynamically.
Explanation by: Mr. Dubey
ng-template holds content that will be rendered conditionally or dynamically.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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