I have two contollers on web page ParentContoller and ChildContoller. How do I pass value from ParentContoller.js to ChildContoller.js. I can bind that value on view from parentContoller to child contoller view. But how do i pass it from one contoller.js to another contoller.js for further operation.What are different ways to passing values from one contoller to another in angular js.Please help
<div ng-controller="ParentContoller">
<input type="text" ng-model="dataService.value1" />
</div>
// Controller 2 view
<div ng-controller="ChildContoller">
The value entered by user is {{dataService.value1}}
</div>