Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What does the @Input() decorator do?

  1. A Marks a property as receiving data from the parent component
  2. B Creates a form input element
  3. C Injects a service
  4. 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.

All Angular MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as