Answer the question
In order to leave comments, you need to log in
How to change the property of another controller from one controller?
Example
And is it possible to somehow globally access the properties of any controller?
Answer the question
In order to leave comments, you need to log in
Yes, as already answered here. via $parent.
There may be several situations
1) From the child to the parent
2) We need to get access from the parent to the child.
3) controllers at the same level
1) $scope.$parent.functionName();
2) You can do this: in the child we write something like this
$scope.$parent.functionName = function(){
};
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question