How would you pass data from a child component to a parent component?
Answer / Shivam Verma
In Angular 2, you can pass data from a child component to a parent component using @Input() decorator on the property in the parent component, and emitting an EventEmitter in the child component when data changes. The parent component subscribes to this EventEmitter to receive the updated data.
| Is This Answer Correct ? | 0 Yes | 0 No |
How to preventdefault on anchor tags?
Who is the author of angular js?
What is Global API?
What is routerstatesnapshot in angular?
What does :host-context() pseudo-class selector target?
What is a single page application or spa?
What are the different types of directive?
How to handle 'loading chunk failed' error in angularjs application?
What is one way data binding in angularjs?
What is pipetransform interface?
What is factory method?
What do you understand by linking function?