Q. What does the Angular 'ng-content' directive do?

  • (A) It projects content into a component from its parent
  • (B) It creates a form
  • (C) It defines routes
  • (D) It adds styles
πŸ’¬ Discuss
βœ… Correct Answer: (A) It projects content into a component from its parent
Explanation: ng-content is used for content projection.
Explanation by: Mr. Dubey
ng-content is used for content projection.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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