πŸ“Š Angular
Q. What is the purpose of the @Input decorator?
  • (A) To pass data from child to parent component
  • (B) To define component styles
  • (C) To receive data from parent to child component
  • (D) To trigger event emission
πŸ’¬ Discuss
βœ… Correct Answer: (C) To receive data from parent to child component

Explanation: @Input marks a property to accept data passed from a parent component.

Explanation by: Mr. Dubey
@Input marks a property to accept data passed from a parent component.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
44
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
83%
Success Rate