What does the @Input() decorator do?
- A Marks a property as receiving data from the parent component
- B Creates a form input element
- C Injects a service
- D Listens for DOM input events
Answer
Marks a property as receiving data from the parent component
@Input defines the component's incoming API. @Output with an EventEmitter defines the outgoing events the parent can listen to.





