Q. What does `ng-content` do?

  • (A) Projects content from a parent component into a child component
  • (B) Declares a module
  • (C) Exports a service
  • (D) Validates an input field
πŸ’¬ Discuss
βœ… Correct Answer: (A) Projects content from a parent component into a child component
Explanation: `ng-content` is used for content projection in Angular components.
Explanation by: Mr. Dubey
`ng-content` is used for content projection in Angular components.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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