var parent = angular.module('parent', ['swxSessionStorage']);
parent.controller('parent', [
$scope.idMenu = [{
label : "id1",
value : 1
}]
$scope.name=[abc,def];
/**
* Calling child controller
*/
var childView = $scope.$new(true);
$controller('child',{$scope:childView});
$scope.someMetod = function(){
childView.getChildData();
}
}
--------------
parent.controller('child', [
$scope.getChildData = function(){
$scope.idMenu.value
}
I'm not able to access parent $scope.idMenu in Child controller?
But Im able to access $scope.name,which is just an array,but Im not able to access JsonArray.
What could be the reason?