InterviewSolution
Saved Bookmarks
| 1. |
What is @input and @output in Angular 2? |
|
Answer» Both @input and @output are decorators. The decorator @Input is used to bind a property WITHIN ONE child COMPONENT to receive value from the parent component, WHEREAS we use the @output decorator to bind the property of a component to send data from child component to parent component or calling component. |
|