Bird
0
0

Which of the following is true about the @Input property in a child component?

easy📝 Conceptual Q2 of 15
Angular - Component Interaction
Which of the following is true about the @Input property in a child component?
AIt allows the child to receive values from the parent
BIt must be decorated with @Output
CIt automatically emits events to the parent
DIt is used to define routes
Step-by-Step Solution
Solution:
  1. Step 1: Identify the purpose of @Input

    @Input marks a property to receive data from the parent component.
  2. Step 2: Eliminate incorrect options

    @Output is for event emission, not @Input. Routes are unrelated.
  3. Final Answer:

    It allows the child to receive values from the parent -> Option A
  4. Quick Check:

    @Input = receive data from parent [OK]
Quick Trick: Remember: @Input receives, @Output sends [OK]
Common Mistakes:
  • Mixing @Input with @Output
  • Thinking @Input emits events
  • Confusing @Input with routing

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes