A

Admin • 825.56K Points
Coach

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
  • Correct Answer - Option(B)
  • Views: 8
  • Filed under category Angular JS
  • Hashtags:

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.