A

Admin • 833.24K Points
Coach

Q. What is the purpose of the @Input decorator?

  • (A) To pass data from child to parent component
  • (B) To define component styles
  • (C) To receive data from parent to child component
  • (D) To trigger event emission
  • Correct Answer - Option(C)
  • Views: 27
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin

@Input marks a property to accept data passed from a parent component.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.