πŸ“Š Angular
Q. What is the use of Angular’s ContentChild decorator?
  • (A) Access a child component declared inside the template of the current component
  • (B) Access projected content inside a component
  • (C) Listen to content changes
  • (D) Create child components dynamically
πŸ’¬ Discuss
βœ… Correct Answer: (B) Access projected content inside a component

Explanation: ContentChild gives access to elements projected via <ng-content>.

Explanation by: Mr. Dubey
ContentChild gives access to elements projected via <ng-content>.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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