Issue Simulation: http://plnkr.co/edit/ZPgMxGwhha7S1cmTSNg8?p=info
Description: I want to share the data of parent state to child state. I am not creating a separate controller for child states. Also I am creating a nested views. So ideally children should share the parent scope. But it is not working.
this.successHandler = function(data){
console.log("Inside Success Handler");
mainCtrl.company = data;
};
I am initializing the company object in parent scope and binding it with the view of child state.
<input class="form-control" ng-model="mainCtr.company.name" type="text" placeholder="Enter Name Here">
I have checked one of the approach here. But somehow it is not working in my case. Also I am trying to avoid usage of $scope and using "this" instead. Can someone help me accessing "mainCtrl.company" data inside all the three tabs?