I have an issue, i would like to take your suggestion on this. I have used child controller inside parent controller div . e,g,
<div ng-controler="parent">
<div ng-controler="child"></div>
</div>
And in the js file ,
I have used module.controller("Parent")
syntax for defining controller.
I am not using $scope in controler for storing variables but i am using var self = this;
and have all the variables on self object. Now i want to use parent variables inside child controller. as i am not using scope so i am unable to use this syntax $scope.parent
. variables in child controllers.
Can you please advise on this that how to use parent controller variable in child controller. Any help is appreciated.