Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How would you pass data from a child component to a parent component?



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

Post New Answer

More AngularJS Interview Questions

How to preventdefault on anchor tags?

1 Answers  


Who is the author of angular js?

1 Answers  


What is Global API?

1 Answers   Xoriant,


What is routerstatesnapshot in angular?

1 Answers  


What does :host-context() pseudo-class selector target?

1 Answers  


What is a single page application or spa?

1 Answers  


What are the different types of directive?

1 Answers  


How to handle 'loading chunk failed' error in angularjs application?

1 Answers  


What is one way data binding in angularjs?

1 Answers  


What is pipetransform interface?

1 Answers  


What is factory method?

1 Answers  


What do you understand by linking function?

1 Answers  


Categories