In Angular, the _____ decorator is used to bind a property in the child component to receive a value from the parent component.

  • @ContentChild
  • @Input
  • @Output
  • @ViewChild
In Angular, the @Input decorator is used to bind a property in the child component, allowing it to receive a value from the parent component. This is commonly used for passing data from a parent to a child component.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *