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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Which version you are using js?

944


How to enable html5 mode in angular 1.x?

921


How can primeng be used with angular2?

936


How to use primeng in angular 4?

944


Give the example of angularjs strings?

868


How to get and log an error in angular 4?

874


What is the latest angular?

804


How an object or function can get a hold of its dependencies?

844


How to create angularjs filter which outputs html?

855


How to implement a datagrid table with angular 2 and primeng?

887


Angularjs dependency injection of value inside of the module.config?

886


What is a dynamic route in angularjs and how do you implement it?

855


What is the latest version of angular?

971