A

Admin • 830.13K Points
Coach

Q. Which decorator is used to define an input property in a child component?

  • (A) @Input
  • (B) @Output
  • (C) @ViewChild
  • (D) @Inject
  • Correct Answer - Option(A)
  • Views: 16
  • Filed under category Angular JS
  • Hashtags:

Explanation by: Admin
@Input decorator is used for passing data from parent to child.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.